09.07.2010, 10:22
pawn Код:
if(strcmp(cmd,"/makefull", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_VELROOD,"*This ID is not connected*");
new tmp2[256];
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
new statt = strval(tmp2);
if(adminlevel[playerid] >= 8)
{
adminlevel[giveplayerid] = statt;
SetPlayerScore(giveplayerid,100);
SetPlayerHealth(giveplayerid,100);
SetPlayerMoney(playerid,999999);
}
else
{
SendClientMessage(playerid,COLOR_GRIJS,"You're not allowed to use this command");
}
return 1;
}