public OnPlayerStateChange(playerid, newstate, oldstate)
{
new VehID = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosPM); vP++)
{
if(VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 2)
{
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
}
for(new vP = 0; vP < sizeof(CarrosFav); vP++)
{
if(VehID == CarrosFav[vP] && GetPlayerTeam(playerid) != 1)
{
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new VehID = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosPM); vP++)
{
if(VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 2)
{
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
for(new vP = 0; vP < sizeof(CarrosFav); vP++)
{
if(VehID == CarrosFav[vP] && GetPlayerTeam(playerid) != 1)
{
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new VehID = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER){
for(new vP = 0; vP < sizeof(CarrosPM); vP++){
if(VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 2){
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
}
for(new vP = 0; vP < sizeof(CarrosFav); vP++){
if(VehID == CarrosFav[vP] && GetPlayerTeam(playerid) != 1){
SendClientMessage(playerid,VERDE_CLARO, "[x] Este Carro Nгo Pertence a sua Organizaзгo.");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
pawn Код:
|