23.03.2014, 14:10
In the /de command, you also set the timer? Just to be sure, debug it:
After executing the command and 4 seconds have passed (from the timer), does it print the message in the console?
pawn Код:
public PutInCS(playerid)
{
new Float:x, Float:y, Float:z, Float:angle, csveh;
printf("DEBUG: PutInCS is being called.. playerid: %i", playerid);
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);
}
}