09.07.2010, 15:20
I know have this:
But when I do /makefull [playerid] [statid] it doesn't set's my score to 23 or 73 etc.
Someone please help
Код:
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*");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
if(adminlevel[playerid] >= 3)
{
if(strval(tmp2) == 1) SetPlayerScore(giveplayerid,23);
if(strval(tmp2) == 2) SetPlayerScore(giveplayerid,73);
if(strval(tmp2) == 3) SetPlayerScore(giveplayerid,89);
if(strval(tmp2) == 4) SetPlayerScore(giveplayerid,100);
}
else
{
SendClientMessage(playerid,COLOR_GRIJS,"You're not allowed to use this command");
}
return 1;
}
Someone please help

