29.08.2013, 18:42
How to do that ?And i want if tha player is in another veh or on foot, server send message"You arent in your car, you cant enter"
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
if(ArrivedAtCheckPoint[playerid] == 1)
{
//SCRIPT YOUR SHIT
}
else return SendClientMessage(playerid, color, "You are not at the Checkpoint yet");
}
else return SendClientMessage(playerid, color, "This is not the right vehicle to enter the checkpoint");
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 411)
{
new pname[50];
if(GetPlayerName(playerid,pname,sizeof(pname) == strval("bustern")))
{
SendClientMessage(playerid,-1,"Welcome to Infernus");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"You't don't have access to use this vehicle");
}
}
return 1;
}
|
Код:
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
if(ArrivedAtCheckPoint[playerid] == 1)
{
//SCRIPT YOUR SHIT
}
else return SendClientMessage(playerid, color, "You are not at the Checkpoint yet");
}
else return SendClientMessage(playerid, color, "This is not the right vehicle to enter the checkpoint");
}
|