23.03.2014, 13:52
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 :
Please help me [+REP!]
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