30.12.2009, 08:51
Quote:
Originally Posted by rumbiic
Quote:
Код:
if(strcmp("/levelup", cmdtext, true, 10) == 0) { if(gPlayerLogged[playerid] == 1) { if(PlayerInfo[playerid][pLevel] == 0) { if(nauda >= 1) { SendClientMessage(playerid, COLOR_WHITE, "[Info:] Tu nopirki 1 limeni"); SendClientMessage(playerid, COLOR_WHITE, "[Info:] Tagad tu vari izmantot komandu /count"); PlayerInfo[playerid][pLevel] = 1; return 1; } } } return SendClientMessage(playerid, COLOR_GREY, "[Kluda:] Tev vispirms ir jaielogojas"); } |
pawn Код:
if(strcmp("/levelup", cmdtext, true, 10) == 0)
{
if(gPlayerLogged[playerid] == 1)
{
if(PlayerInfo[playerid][pLevel] == 0)
{
if(nauda >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "[Info:] Tu nopirki 1 limeni");
SendClientMessage(playerid, COLOR_WHITE, "[Info:] Tagad tu vari izmantot komandu /count");
PlayerInfo[playerid][pLevel] = 1;
return 1;
}
//SendClientMessage(playerid, color, "you need to be level 0"):
return 1;
}
//SendClientMessage(playerid, color, "you need to be logged"):
return 1;
}
return SendClientMessage(playerid, COLOR_GREY, "[Kluda:] Tev vispirms ir jaielogojas");
}