SA-MP Forums Archive
[Dъvida] OnPlayerEnterVehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Dъvida] OnPlayerEnterVehicle (/showthread.php?tid=319686)



[Dъvida] OnPlayerEnterVehicle - Imortais - 19.02.2012

Queria quando um Player entrar em um veнculo da famнlia ex: a da Marfioso.
Aparecesse uma mensagem dizendo que o cara й da famнlia Marfioso.
Tentei assim:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsAMarfiosoCar)
    {
          new name[MAX_PLAYER_NAME];
          GetPlayerName(playerid, name, sizeof(name));
          if(strfind(name, "Marfioso", true) != -1) { }
          else {
          RemovePlayerFromVehicle(playerid);
          SendClientMessage(playerid, COLOR_YELLOW, "Vocк faz parte da Famнlia Marfioso"); }
     }
    RemovePlayerAttachedObject(playerid, 4);
    return 1;
}
Mais ai deram uns erros, como faзo isso em?


Re: [Dъvida] OnPlayerEnterVehicle - arakuta - 19.02.2012

que erros? :S