13.04.2015, 16:03
PHP код:
CMD:test(playerid, params[])
{
if(PlayerData[playerid][WantedLevel] == 5) return SendClientMessage(playerid,-1,"Your wanted level is already 5");
else
{
PlayerData[playerid][WantedLevel] = 5;
SendClientMessage(playerid,-1,"You wanted level is now 5");
}
return 1;
}
CMD:check(playerid, params[])
{
if(PlayerData[playerid][WantedLevel] != 5) return SendClientMessage(playerid, -1, "You can't use this command because your WL is not 5!");
else
{
if(PlayerData[playerid][WantedLevel] == 5) return SendClientMessage(playerid, -1,"You wanted level is 5");
}
return 1;
}