19.06.2013, 11:42
pawn Код:
//OnPlayerEnterVehicle
else if(iPlayer[playerid][Emprego] == 1(vehicleid) && !ispassenger)
{
if(!iPlayer[playerid][Emprego] == 1(playerid))
{
SendClientMessage(playerid, 0x9E50FFAA, "Vocк nгo pode fazer isso!");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);//Posiзao que seta apos tentar entrar
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);//Mesma coisa
}
}
//OnPlayerStateChange
else if(iPlayer[playerid][Emprego] == 1(newcar))
{
if(iPlayer[playerid][Emprego] == 1(playerid))
{
SendClientMessage(playerid, 0x9E50FFAA, "Vocк nгo й Pode fazer isso!");
RemovePlayerFromVehicleEx(playerid);
}
}