05.03.2019, 21:44
Nгo sei se vocк quer algo do tipo, mas vamos lб.
Pode ser feito de duas maneiras:
1
2
Pode ser feito de duas maneiras:
1
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 1 || vehicleid == 2 || vehicleid == 3)
{
if(PlayerData[playerid][pOrg] != ORG_POLICIAL)
{
new Float:cPos[3];
GetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
SetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
SendClientMessage(playerid, -1, "Esse veнculo й da org de Policial.");
}
}
return 1;
}
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 1; i != 3; ++i)
{
if(vehicleid == i)
{
if(PlayerData[playerid][pOrg] != ORG_POLICIAL)
{
new Float:cPos[3];
GetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
SetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
SendClientMessage(playerid, -1, "Esse veнculo й da org de Policial.");
}
}
}
return 1;
}