11.07.2015, 00:13
Here you go,
Hope that helps, Rep if it does lol ^^
KillerDVX,
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == your id)
{
SetTimerEx("Message", 5000, false, "i", playerid);
}
return 1;
}
forward Message(playerid);
public Message(playerid)
{
SendClientMessage(playerid, -1, "Welcome to the vehicle.");
SetTimerEx("Explosion", 5000, false, "i", playerid);
return 1;
}
forward Explosion(playerid);
public Explosion(playerid)
{
new Float:x, Float:y, Float:z
GetPlayerPos(playerid,x,y,z);
CreateExplosion(x,y,z,12, 10.0);
SendClientMessage(playerid, -1, "Trapped LOL.");
return 1;
}
KillerDVX,