Need someone to fix the Pawno Code
#2

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

new bar;

public OnFilterScriptInit()
{
    CreateObject(968, 1544.6999511719, -1630.6999511719, 13.300000190735, 0, 90, 90);
    CreateObject(992, 1544.5999755859, -1621.0999755859, 14.10000038147, 0, 0, 86);
    CreateObject(992, 1544.8000488281, -1618.5999755859, 14.10000038147, 0, 0, 84);
    CreateObject(992, 1544.5, -1634.5999755859, 14.10000038147, 0, 0, 88);
    CreateObject(992, 1544.1999511719, -1637.6999511719, 14.5, 0, 0, 88);
   
    //Barriers
    bar = CreateObject(968, 1544.6999511719, -1630.6999511719, 13.300000190735, 352, 270, 90);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/gate", true))
    {
        SetObjectPos(bar, 1544.6999511719, -1630.6999511719, 13.300000190735);
        SetObjectPos(bar, 252, 0,90);
        SetTimer("InitPos", 5000, false);
        return 1;
    }
    return 0;
}

forward InitPos();
public InitPos()
{
    SetObjectPos(bar, 1544.6999511719, -1630.6999511719, 13.300000190735);
    SetObjectRot(bar, 252, 0, 90);
}
Reply


Messages In This Thread
Need someone to fix the Pawno Code - by spiderr - 27.01.2014, 10:03
Re: Need someone to fix the Pawno Code - by Konstantinos - 27.01.2014, 10:35

Forum Jump:


Users browsing this thread: 3 Guest(s)