23.05.2014, 20:21
pawn Код:
CMD:set(playerid,params[])
{
new id, thing[128] , value;
if(!sscanf(params, "ds[128]d", id, thing, value))
{
if(strcmp(thing,"level", true) == 0)
{
// your code here
}
if(strcmp(thing,"xp", true) == 0)
{
// your code here
}
if(strcmp(thing,"money", true) == 0)
{
// your code here
}
}
else
SendClientMessage(playerid, -1, "USAGE: /set [playerid/partofName] [Thing] [value]");
return 1;
}