[AJUDA] Codigo
#1

Ola Galera , + um Pobleminha , Rss .

Fui e acrensentei + 2 leveis de socio , pois sу eram 1 agora tem 3 leveis
mas sendo que o /darsocio , sу dar o socio 1 , queria que dar-se os outros 2

tipo /darsocio [id] [nivel de1 a 3]

Olha meu codigo ae .


Quote:

if(strcmp(cmd, "/darsocio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);

if (PlayerInfo[playerid][pAdmin] >= 1341)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pSocio] = 1;
format(string, sizeof(string), "Vocк ganhou VIP socio do admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк deu VIP socio para %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
new celulas[100], Nome[24];
if(!fexist("Socio.log")) return CriarLog("Socio.log");
GetPlayerName(playerid, Nome, 24);
format(celulas, sizeof(celulas), "%s deu sуcio para %d", Nome);
EscreverLog("Socio.log", celulas);
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return 1;
}

Й Isso Galera , sу falta ageitar isso pra Funfar 100%
Reply


Messages In This Thread
[AJUDA] Codigo - by Rodrigo_Avenged - 04.01.2012, 13:15
Re: [AJUDA] Codigo - by Rodrigo_Avenged - 04.01.2012, 14:41
Re: [AJUDA] Codigo - by felipe_mr - 04.01.2012, 14:43
Re: [AJUDA] Codigo - by Lуs - 04.01.2012, 14:48
Re: [AJUDA] Codigo - by felipe_mr - 04.01.2012, 14:52
Re: [AJUDA] Codigo - by rjjj - 04.01.2012, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)