Little Problem [+REP]
#1

Hello everybody i hope u can help me with a function ....

So i make a function to put a player in a vehicle after 4 seconds ..
The problem is the function doesn't put the player in vehicle .
And i want to know what's wrong in my function .

Function :

pawn Код:
public PutInCS(playerid)
{
    new Float:x, Float:y, Float:z, Float:angle, csveh;
    if(PlayerInDM[playerid][CS] == 1)
    {
        GetPlayerPos(playerid, x,y,z);
        GetPlayerFacingAngle(playerid, angle);
        csveh = CreateVehicle(444, x,y,z,angle, 24, 25, -1);
        PutPlayerInVehicle(playerid, csveh, 0);
        GameTextForPlayer(playerid, "~R~ Defeat all your opponents!", 4000, 1);
        TogglePlayerControllable(playerid, true);
    }
}

    SetTimerEx("PutInCS", 4000, false, "i", playerid); // That i use in command
Please help me [+REP!]
Reply


Messages In This Thread
Little Problem [+REP] - by Ady_Ro - 23.03.2014, 13:52
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 13:55
Re: Little Problem [+REP] - by Sgt.TheDarkness - 23.03.2014, 13:55
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 14:02
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 14:10
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 16:18
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 16:52
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 16:54
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 17:02
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 17:09

Forum Jump:


Users browsing this thread: 2 Guest(s)