- 0
problema comanda /setcolor
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
crazyzee
Salut am si eu comanda /setcolor insa cand dau /setcolor [ id player] white nu se face culoarea alba se fac negru si nu se mai vede useru pe TAB .
[pawn]if(strcmp(cmd, "/setcolor", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setcolor [playerid/PartOfName] ");
SendClientMessage(playerid, COLOR_GREY, "Available colors: White");
return 1;
}
new playa;
new color;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
color = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SetPlayerColor(playa, color);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}[/pawn]
//Shades of Grey #define WHITE 0xFFFFFFFFRPG.VIBEPLAY.RO
Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!
8 answers to this question
Recommended Posts