02.04.2015, 17:13
Hi guys.
how can i write when player type cmdtext and when player enter vehicle get player checkpoint.
how can i write when player type cmdtext and when player enter vehicle get player checkpoint.
CMD:activate(playerid, params[])
{
cpVar[playerid] = 1;
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(cpVar[playerid] == 1 && vehicleid == cpVehicle)
{
SetPlayerCheckpoint(playerid, x, y, z, size);
}
return 1;
}