Comando /jetpack
#1

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

Eu gostaria de passar este comando para um player VIP, como faзo?
Reply
#2

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(variavel do VIp > 1){
SendClientMessage(playerid, COLOR_GREEN,"(SERVER) Jetpack criado");
SetPlayerSpecialAction(playerid, 2);
return 1;
}
}
Reply
#3

Obrigado, funcionou.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)