[HELP] Gates
#3

Nope....

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/pgate", true)==0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessege(playerid,0xFF0000FF,"You are not an admin);
        SendClientMessage(playerid, COLOR_BBLUE, "
Gate opening ... close automaticaly!");
        MoveObject(pgate, 829.798,-2067.799,8.735, 1.5);
        SetTimer("
pgatet", 5000, 0);
        return 1;
    }

    if(strcmp(cmdtext, "
/g1", true)==0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessege(playerid,0xFF0000FF,"
You are not an admin);
        SendClientMessage(playerid, COLOR_BBLUE, "Garage [1] opening ... close automaticaly!");
        MoveObject(g1gate, 841.935,-2077.986,7.885, 1.5);
        SetTimer("g1gatet", 10000, 0);
        return 1;
    }
   
    if(strcmp(cmdtext, "/g2", true)==0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessege(playerid,0xFF0000FF,"You are not an admin);
        SendClientMessage(playerid, COLOR_BBLUE, "
Garage [2] opening ... close automaticaly!");
        MoveObject(g2gate, 854.147,-2078.010,7.844, 1.5);
        SetTimer("
g2gatet", 10000, 0);
        return 1;
    }
    //More commands
    return 0;
}
Reply


Messages In This Thread
[HELP] Gates - by NotoriousMOB - 24.09.2010, 22:24
Re: [HELP] Gates - by Tee - 24.09.2010, 22:46
Re: [HELP] Gates - by willsuckformoney - 24.09.2010, 22:51
Re: [HELP] Gates - by NotoriousMOB - 24.09.2010, 22:53
Re: [HELP] Gates - by Tee - 24.09.2010, 22:56
Re: [HELP] Gates - by willsuckformoney - 24.09.2010, 22:57
Re: [HELP] Gates - by NotoriousMOB - 24.09.2010, 23:07
Re: [HELP] Gates - by willsuckformoney - 24.09.2010, 23:09
Re: [HELP] Gates - by Tee - 24.09.2010, 23:10
Re: [HELP] Gates - by NotoriousMOB - 24.09.2010, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)