16.07.2013, 15:26
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: You aren't login on the server.");
if(InDealer[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: You are visiting the dealership.");
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: That command isn't recognized. Please use /n(ewbie) for further help.");
}
else
{
printf("Player %s %s", Naame[playerid], cmdtext);
return 1;
}
return 1;
}
Quote:
Admin Maurice: message Error: You are visiting the dealership. |