[AJuda] Gm Mata Mata - 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] Gm Mata Mata (
/showthread.php?tid=654305)
[AJuda] Gm Mata Mata -
Shuffle013 - 25.05.2018
faзo cmd do jetpack e o jetpack aparece e some questao de 3sec
PHP код:
if(strcmp("/vjetpack", cmdtext, true) == 0) {
if(CallRemoteFunction("GetPlayerVIPLevel","i",playerid) < 2) return SendClientMessage(playerid,COLOUR_ERRO,StringTable[8]);
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOUR_ERRO,"Saia do carro para usar jetpack!");
if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[0]);
if(NoEvento[playerid] == 1 && EventoAtivo == 1) return SendClientMessage(playerid, COLOUR_ERRO, "{FF0000}|ERRO| » {FFFFFF}Vocк estб em um evento. Para sair: {FF0000}/sair");
SetPlayerSpecialAction(playerid, 2);
CallRemoteFunction("CMDMessageToVips","ii",playerid,"VJETPACK");
PlayerPlaySound(playerid,1053,0.0,0.0,0.0);
SendClientMessage(playerid, COLOUR_INFORMACAO, "Aproveite sua Jetpack!");
return 1;
}
Re: [AJuda] Gm Mata Mata -
AutoMatic2 - 25.05.2018
PHP код:
if(CallRemoteFunction("GetPlayerVIPLevel","i",playerid) < 2) return SendClientMessage(playerid,COLOUR_ERRO,StringTable[8]);
CallRemoteFunction("CMDMessageToVips","ii",playerid,"VJETPACK");
?
Tenta assim:
PHP код:
if(strcmp(cmdtext, "/vjetpack", true) == 0)
{
if(CallRemoteFunction("GetPlayerVIPLevel", "i", playerid) < 2) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[8]);
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOUR_ERRO,"Saia do carro para usar jetpack!");
if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[0]);
if(NoEvento[playerid] == 1 && EventoAtivo == 1) return SendClientMessage(playerid, COLOUR_ERRO, "{FF0000}|ERRO| » {FFFFFF}Vocк estб em um evento. Para sair: {FF0000}/sair");
SetPlayerSpecialAction(playerid, 2);
CallRemoteFunction("CMDMessageToVips", "ii", playerid, "VJETPACK");
PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOUR_INFORMACAO, "Aproveite sua Jetpack!");
return 1;
}
Re: [AJuda] Gm Mata Mata -
Shuffle013 - 25.05.2018
Obrigado