12.09.2010, 21:32
Hey, can someone make a command where rcon admin types /makedonator then the player is Donator == 1;
if(strcmp(cmd, "/makedonator", true) == 0) {
new newDonator;
tmp = strtok(cmdtext, idx);
newDonator = ReturnUser(tmp);
if(IsPlayerConnected(newDonator))
{
if(IsPlayerAdmin(playerid))
{
Donator[newDonator] = 1;
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not an Administrator!");
}
return 1;
}
Haven't done anything with strcmp for a while, but here's my go at it.
pawn Code:
|
Haven't done anything with strcmp for a while, but here's my go at it.
pawn Code:
|