Bonjour,
J'ai fais une commande /ooc pour parler en ooc et j'aimerais savoir comment ajouter l'id du joueur qui parle sur le message...
Voilà ma création : CMD:o(playerid, params[])
{
new pID, pName[MAX_PLAYER_NAME];
new string[300], message[200];
GetPlayerName(playerid, pName, sizeof(pName));
if(!sscanf(params,"s", message))
{
format(string, sizeof(string), "(( [ %i ] | %s : %s ))",pID, pName,message);
SendClientMessageToAll(bleu, string);
}
else return SendClientMessage(playerid, gris, "USAGE: /o <Message>");
return 1;
}
Et je voudrais savoir aussi comment fais un chat RP...
J'ai fais quelque chose dans le OnPlayerText mais le message en couleur apparaît tout le temps. J'aimerais savoir comment le retirer... CODE : for(new i;i<MAX_PLAYERS;i++)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x,y,z);
new string[200], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s : %s", pName, text);
if(IsPlayerInRangeOfPoint(i, 10, x,y,z))
{
SendClientMessageToAll(gris,string);
}
}
Merci d'avance et à la prochaine.[/i]