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, "Hellow there new citezin and welcome to San Andreas.");
SendClientMessage(giveplayerid, COLOR_YELLOW, "Welcome to the Information Outline course.");
SetTimerEx("IO1", 10000, 0, "d", giveplayerid);
}
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;
}