ZCMD Help
#5

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.
Reply


Messages In This Thread
ZCMD Help - by [UG]Scripter - 22.11.2010, 23:34
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:37
Re: ZCMD Help - by iggy1 - 22.11.2010, 23:38
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:39
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:25
Re: ZCMD Help - by Toni - 23.11.2010, 00:32
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:36
Re: ZCMD Help - by cessil - 23.11.2010, 00:38
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:45
Re: ZCMD Help - by TheXIII - 23.11.2010, 00:46
Re: ZCMD Help - by cessil - 23.11.2010, 00:53
Re: ZCMD Help - by Toni - 23.11.2010, 00:54
Re: ZCMD Help - by TheXIII - 23.11.2010, 01:11

Forum Jump:


Users browsing this thread: 2 Guest(s)