- 0
problema comanda /setcolor
-
Similar Content
-
- 4 replies
- 189 views
-
- 1 reply
- 140 views
-
- 4 answers
- 666 views
-
Comanda /spec
By VAurel,
- 4 answers
- 323 views
-
- 1 reply
- 99 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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 0xFFFFFFFF
RPG.VIBEPLAY.RO
Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts