11.12.2014, 18:08
pawn Code:
CMD:check(playerid,params[])
{
new targetid;
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"Usage: /check [playerid]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "That player isn't connected!");
if(PInfo[playerid][pDriver] == 0) return SendClientMessage(playerid, -1, "That player doesn't have license.");
if(PlayerInfo[playerid][pDriver] == 1) return SendClientMessage(playerid, -1, "That player have driving license!");
return 1;
}