[Ajuda] Bloquear os carros pelo ID. - 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: [Ajuda] Bloquear os carros pelo ID. (
/showthread.php?tid=330922)
[Ajuda] Bloquear os carros pelo ID. -
vitorzero3um - 03.04.2012
Bom eu uso o fs lux admin e quero saber se tem como eu bloquiar quando o player usa o /car os carros : rhino, hydra, hunter pelo ID.. Alguem pode me ajudar? desde jб agradesso
Re: [Ajuda] Bloquear os carros pelo ID. -
[STR]Matrix - 03.04.2012
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case 520,432,425:
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"[STR] » O uso deste veiculo nгo esta sendo permitido por enquanto");
}
}
}
return true;
}
ta ae mano ^.^ Creditos desse codigo zbt
Re: [Ajuda] Bloquear os carros pelo ID. -
vitorzero3um - 03.04.2012
C:\Users\VITOR\Desktop\FMDAdmin3.pwn(8363) : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Estб dando estй erro..
pode me ajudar?
Re: [Ajuda] Bloquear os carros pelo ID. -
jefe10 - 03.04.2012
Pq vc ja tem um public OnPlayerStateChange so apaga uma delas
Re: [Ajuda] Bloquear os carros pelo ID. -
[STR]Matrix - 03.04.2012
Quote:
Originally Posted by vitorzero3um
C:\Users\VITOR\Desktop\FMDAdmin3.pwn(8363) : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Estб dando estй erro..
pode me ajudar?
|
vc vai econtrar um codigo + ou - assim ai vc vai e apaga
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
Re: [Ajuda] Bloquear os carros pelo ID. -
kinhobryant - 03.04.2012
Public OnplayerKeyStateChange '-'