Quote:
Originally Posted by iggy1
pawn Код:
COMMAND:open(playerid,params) { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); if(!strcmp(playername, "<Name>", true))return SendClientMessage(playerid,COLOR_YELLOW,"[INFO]: UnAuthorised Access Attempt! The Admins Have been alerted!"); { MoveDynamicObject(BradGate,1007.96484375,2425.19531250,12.37271976,5); } return 1; }
!= was in the wrong place and you should be using strcmp for names.
|
Seems to be one small Issue, That name isnt allowed to open the Gate, But everyother name is. Its ment to be so only that name can open the gate.