19.05.2014, 10:14
Hi!
I want that if a player leaves the car and the car did not belong to him, then the car will respawn after 10 seconds, but if the car belongs to him, then you do not respawn.
Sorry for my bad english.
ERROR:
Please help, btw i use Advanced Vehicle System version 1.0 by MadeMan
I want that if a player leaves the car and the car did not belong to him, then the car will respawn after 10 seconds, but if the car belongs to him, then you do not respawn.
Sorry for my bad english.
pawn Код:
forward respawn();
public OnPlayerExitVehicle(playerid, vehicleid)
{
new id = GetVehicleID(vehicleid);
if(GetPlayerVehicleAccess(playerid, id) < 1)
{
SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast! See ei ole sinu masin, seega see respawnib 10 sekundi pдrast!");
SetTimer("respawn", 10000, false);
}
else return SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast!");
return 1;
}
public respawn()
{
new vehicleid = GetPlayerVehicleID(playerid); // (1824)
DestroyVehicle(vehicleid);
}
pawn Код:
C:\Users\Monster\Desktop\samp03z_svr_R1_win32\filterscripts\avs.pwn(1824) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.