11.03.2012, 01:35
pawn Код:
if(strcmp("/gate",cmdtext,true))
{
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(cmdtext) < 22) return SendClientMessage(playerid,-1,"Usage: /gate [password]");
if(strcmp(cmdtext[22],password,true)) return SendClientMessage(playerid,-1,"Wrong Password!");
return 1;
}