31.01.2010, 05:26
Hey, im trying to make a /donators command
when you type it, it says the player To "Donator"
And when i type it, it wont work :S
Please Help?
heres Code:
when you type it, it says the player To "Donator"
And when i type it, it wont work :S
Please Help?
heres Code:
pawn Код:
if(strcmp(cmd, "/donator", true) == 0) //
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "USAGE: /donator [playername/id]");
SendClientMessage(playerid, ORANGE, "FUNCTION: Will Change The Players Team.");
return 1;
}
new targetid = ReturnUser(tmp);
if(targetid != INVALID_PLAYER_ID)
{
SetSpawnInfo( playerid, 0, 3, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
SendClientMessage(playerid,WHITE,"An Admin Has Changed Your Team To: Donator");
}
else if(giveplayerid == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, RED, string);
}
return 1;
}