[Ajuda] /jetpack Nгo ta criando o a mochila a jato
#1

pawn Код:
if(strcmp(cmdtext, "/jetpack", true) == 0) {
new aname[MAX_PLAYER_NAME];GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] > 1){
SendClientMessage(playerid, COLOR_GREEN,"(SERVER) Jetpack criado");
SetPlayerSpecialAction(playerid, 2);
return 1;
}
}
O que tem de errado nesse comando quando entro no seve como adm e digito o comando ele nao ta criando a mochila a jato
Reply
#2

tenta apenas assim

pawn Код:
if(strcmp(cmdtext, "/jetpack", true) == 0)
{
    if(pAdmin[playerid] > 1)
    {
        SetPlayerSpecialAction(playerid, 2);
        SendClientMessage(playerid, COLOR_GREEN,"(SERVER) Jetpack criado");
    }
    return 1;
}
Reply
#3

Sim amigo PT, caso ñ der esse ai, tente esse

PHP код:
if(strcmp(cmdtext"/jetpack"true) == 0) {
new 
aname[MAX_PLAYER_NAME];GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
pAdmin[playerid] == || dini_Int(file"VIP") == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5){
SendClientMessage(playeridCOLOR_GREEN,"[ > ] Jetpack criado");
SetPlayerSpecialAction(playerid2);
return 
1;
}

Reply
#4

Quote:
Originally Posted by PT
Посмотреть сообщение
tenta apenas assim

pawn Код:
if(strcmp(cmdtext, "/jetpack", true) == 0)
{
    if(pAdmin[playerid] > 1)
    {
        SetPlayerSpecialAction(playerid, 2);
        SendClientMessage(playerid, COLOR_GREEN,"(SERVER) Jetpack criado");
    }
    return 1;
}
Valeu pela ajuda fera mais foi culpa do mod que tava instalado aqui tinha esquecido dele aqui na pasta do gta +rep pra voce
Reply
#5

Quote:
Originally Posted by Breno Da Silva Pereira
Посмотреть сообщение
pawn Код:
new aname[MAX_PLAYER_NAME];GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
Й pode ser o mod, mas essas funзхes sгo desnecessбrias, pois estгo sem uso...remova-as como postou acima PT.
Reply
#6

eu ca prefiro jogar sem mod's, mod's estraga a piada do jogo, alem que o estraga.....

ficamos a espera mesmo de saber se eram os mod's
Reply
#7

Quote:
Originally Posted by Jonathan4i20
Посмотреть сообщение
Sim amigo PT, caso с der esse ai, tente esse

PHP код:
if(strcmp(cmdtext"/jetpack"true) == 0) {
new 
aname[MAX_PLAYER_NAME];GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
pAdmin[playerid] == || dini_Int(file"VIP") == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5){
SendClientMessage(playeridCOLOR_GREEN,"[ > ] Jetpack criado");
SetPlayerSpecialAction(playerid2);
return 
1;
}

Nгo tem como tu adivinhar se ele tem variбvel "VIP" ou se os leveis de admins...rsrs
Reply
#8

CMD:jetpack(playerid)
{
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid,ERRO,"ERRO: Voce nao tem permissao.");
SetPlayerSpecialAction(playerid, 2);
SendClientMessage(playerid,COR_PRINCIPAL,"admCMD: Voce criou um jetpack.");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)