Jump to content

Question

Posted

Am facut o comanda pentru cei noi intrati sa primeasca arme personale.

[pawn] if(strcmp(cmd, "/newbie", true)==0)

{

GetPlayerName(playerid,giveplayer,sizeof(giveplayer));

if(PlayerInfo[playerid][pLevel] >= 3)

{

new playa = ReturnUser(tmp);

        if(ngun[playa] >= 2)

{

SendClientMessage(playerid, COLOR_GRAD1, "  Deja ai 2 puncte de arme");

}

else

{

        ngun[playa] += 2;

        GetPlayerName(playerid, sendername,sizeof(sendername));

        GetPlayerName(playa,playername,sizeof(playername));

format(string, sizeof(string), "Ai primit 2 punce de arma infinita. Foloseste /dgun", sendername);

SendClientMessage(playa, COLOR_LIGHTBLUE, string);

}

}

else SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command .");

}[/pawn]

Problema,dau /newbie dar imi zice server unknow command am schimbat numele comenzi si tot degeaba.Care ar putea fi problema?

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.