hum ok je vais observer secis mercie :)
++
edit ok mercie beaucoup sim
voicie la commande /ncol comme promit qui permet de choisir la couleur de son pseudo
if(strcmp(cmd, "/ncol", true) == 0)
{
if(logged[playerid] == 1)
{
tmp = strtokgp(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SYSTEM, "/ncol [Rouge 0/255] [Vert 0/255] [Bleu 0/255]");
return 1;
}
new col1;
col1 = strval(tmp);
if(col1 < 0 || col1 > 255) { SendClientMessage(playerid, COLOR_ORANGE, "Coueleur 1 Invalide!"); return 1; }
tmp = strtokgp(cmdtext, idx);
n1[playerid] = col1;
new col2;
col2 = strval(tmp);
if(col2 < 0 || col2 > 255) { SendClientMessage(playerid, COLOR_ORANGE, "Couleur 2 Invalide!"); return 1; }
tmp = strtokgp(cmdtext, idx);
n2[playerid] = col2;
new col3;
col3 = strval(tmp);
if(col3 < 0 || col3 > 255) { SendClientMessage(playerid, COLOR_ORANGE, "Couleur 3 Invalide!"); return 1; }
n3[playerid] = col3;
format(unlimited, sizeof(unlimited), "%s voicie vos Couleurs NCOL R:%d G:%d B:%d!", name[playerid], col1, col2, col3);
SendClientMessage(playerid, COLOR_ORANGE, unlimited);
new color = col1;
color <<= 8;//By sim
color += col2;
color <<= 8;
color += col3;
color <<= 8;
SetPlayerColor(playerid, color);
}
else
{
format(unlimited, sizeof(unlimited), "%s Vous devez être loger !", name[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, unlimited);
}
return 1;
}
voila a vous de jouer avec les variables ^^
++ :)