/opengate automatich close gate
#8

By the way - learn using tabs. Your code looks shitty f ex:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //-----[Open]-----
    if (strcmp("/Open", cmdtext, true, 10) == 0)
    {
        MoveObject(gate, 831.0235, -1888.9404, 5.9893, 7);
        return 1;
    }
   
    //-----[Ohouse]-----
    if (strcmp("/ohouse", cmdtext, true,10) == 0)
    {
        SetPlayerPos(playerid,837.1106, -1875.3643, 13.4764);
        return 1;
    }
   
    //-----[Close]-----
    if (strcmp("/close", cmdtext, true, 10) == 0)
    {
        MoveObject(gate,831.0235, -1888.9404, 10.8938,7);
        return 1;
    }
   
return 0;
}
Reply


Messages In This Thread
/opengate automatich close gate - by hydronic - 13.09.2011, 20:58
Re: /opengate automatich close gate - by Kingunit - 13.09.2011, 20:59
Re: /opengate automatich close gate - by hydronic - 13.09.2011, 21:07
Re: /opengate automatich close gate - by =WoR=Varth - 13.09.2011, 21:17
Re: /opengate automatich close gate - by hydronic - 13.09.2011, 21:17
Re: /opengate automatich close gate - by =WoR=Varth - 13.09.2011, 21:21
Re: /opengate automatich close gate - by hydronic - 13.09.2011, 21:24
Re: /opengate automatich close gate - by Kingunit - 13.09.2011, 21:32
Re: /opengate automatich close gate - by hydronic - 14.09.2011, 19:03

Forum Jump:


Users browsing this thread: 4 Guest(s)