02.01.2010, 18:53
pawn Код:
if(strcmp(cmdtext, "/lvl 1 license", true) == 0)
{
CallRemoteFunction("SetPlayerLicense", "dd", playerid, randomnumber);
SendClientMessage(playerid, color, "You just got a level 1 license");
return 1;
}
if(strcmp(cmdtext, "/license", true) == 0)
{
new license = CallRemoteFunction("GetPlayerLicense", "d", playerid);
new str[128];
format(str, 128, "Your license level: %d", license);
SendClientMessage(playerid, color, str);
return 1;
}