[Ajuda] Comando Nao Funciona - 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] Comando Nao Funciona (
/showthread.php?tid=559102)
Comando Nao Funciona -
VinnyScript - 21.01.2015
Код:
CMD:car(playerid,params[]) {
new
veh[30],
vehid,
cor1,
cor2
;
if(sscanf(params,"s[30]dd",veh,cor1,cor2)) return SendClientMessage(playerid,-1,"{FF0000}<!> {C3C3C3} /car [nome ou ID] [cor1] [cor2]");
if(IsNumeric(veh)) vehid = strval(veh);
if(vehid == 520 || vehid == 432 || vehid == 592 || vehid == 425 || vehid == 464 || vehid == 476 || vehid == 447) {
if(GetPlayerVirtualWorld(playerid) != 5) return SendClientMessage(playerid, -1, "{F6FF00}Somente no Mundo Mata-Mata");
}
else vehid = ReturnVehicleModelID(veh);
if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,-1,"{00FF00}» ! « {FFFFFF} Veнculo invalido");
GiveVehicle(playerid,vehid,cor1,cor2);
return 1;
}
no mundo principal vc consegue pegar os veiculos proibidos alguem pdoe ajuda ?
Re: Comando Nao Funciona -
best95 - 21.01.2015
TENTA ASSIM: kkkk
pawn Код:
if(vehid == 520 || vehid == 432 || vehid == 592 || vehid == 425 || vehid == 464 || vehid == 476 || vehid == 447)
{
if(GetPlayerVirtualWorld(playerid) != 5) return Msg(playerid, Vermelho, "Somente no Mundo Mata-Mata");
}
Re: Comando Nao Funciona -
ipsLuan - 21.01.2015
Pode ser que ocorra erros, estou pelo celular.
pawn Код:
CMD:car(playerid,params[]) {
new veh[30], vehid, cor1, cor2;
if(sscanf(params,"s[30]dd",veh,cor1,cor2)) return SendClientMessage(playerid,-1,"{FF0000}<!> {C3C3C3} /car [nome ou ID] [cor1] [cor2]");
if(IsNumeric(veh))
{
vehid = strval(veh);
if(vehid == 520 || vehid == 432 || vehid == 592 || vehid == 425 || vehid == 464 || vehid == 476 || vehid == 447)
{
if(GetPlayerVirtualWorld(playerid) != 5)
{
SendClientMessage(playerid, -1, "{F6FF00}Somente no Mundo Mata-Mata");
} else vehid = ReturnVehicleModelID(veh);
}
}
if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,-1,"{00FF00}» ! « {FFFFFF} Veнculo invalido");
GiveVehicle(playerid,vehid,cor1,cor2);
return 1;
}
Re: Comando Nao Funciona -
VinnyScript - 21.01.2015
xCR7 <3 vlw mesmo