19.02.2011, 17:20
What's wrong whit this commands ?
No error when i try to compile but doesn't work.
Код:
COMMAND:getvip(playerid,params[]){
if(IsPlayerAdmin(playerid)){
new vippp;
if(sscanf(params,"u",playerid)) return SendClientMessage(playerid,COLOR_WHITE,"Use /getvip [id]");
if(IsPlayerConnected(vippp)){GetPlayerVip(vippp);
SendClientMessage(playerid,0xF60000AA, "{00CEFC}De acum nu mai esti {FC0303}V{030303}.{FC0303}I{030303}.{FC0303}P{030303}.");
return 1;}else{
SendClientMessage(playerid, COLOR_RED, "{FC0303}EROARE: {00FF19}Player-ul nu este conectat");return 1;}}return 1;}
COMMAND:givevip(playerid,params[]){
if(IsPlayerAdmin(playerid)){
new vippp;
if(sscanf(params,"u",playerid)) return SendClientMessage(playerid,COLOR_WHITE,"Use /givevip [id]");
if(IsPlayerConnected(vippp)) {
SetPlayerVip(vippp);
SendClientMessage(vippp, 0xF60000AA, "{00FF19}Felicitari ! {00CEFC}Ai primit {FC0303}V{030303}.{FC0303}I{030303}.{FC0303}P{030303}.");
return 1;}else{
SendClientMessage(playerid, COLOR_RED, "{FC0303}EROARE: {00FF19}Player-ul nu este conectat");return 1;}}return 1;}

