if(strcmp(cmd,"/giveio",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giveio [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "*Instructor %s Gives %s a paper to read", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "* You have given the Information Outline course to %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_RED, "|__ Welcome to the Information Outline Course.__|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "Welcome to the Information Outline course. In this course you"); //Wait here SendClientMessage(giveplayerid, COLOR_YELLOW, "In This course , you will learn manythings in driving"); SendClientMessage(giveplayerid, COLOR_RED, "To continue write /next"); } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; }