11.03.2012, 08:47
pawn Код:
COMMAND:gate(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,10.0,246.0052,-1806.2119,4.4689,178.5597)) return SendClientMessage(playerid,-1, "You aren't near any gate!");
if(strlen(params) < 22) return SendClientMessage(playerid,-1,"Usage: /gate [password]");
if(strcmp(params[22],password,true)) return SendClientMessage(playerid,-1,"Wrong Password!");
return 1;
}