if(strcmp(cmd, "/taxi", true) == 0){
new pid[256];
new tmpp[256];
new pidName[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_GREEN, "Tu a appeler un taxi !");
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(GetPlayerSkin(i) == 255)
{
GetPlayerName (playerid, pidName, 255);
format(tmpp, sizeof(tmpp), "*** %s (ID:%d) a appeler un taxi***",pidName,pid);
SendClientMessageToAll(0x33AA33AA, tmpp);
GameTextForAll("]Un joueur a appeler un taxi !]", 3500, 5);
GameTextForPlayer(playerid,"~r~]Un joueur a appeler un taxi !]",3500,5);
}
if(GetPlayerSkin(i) == 240)
{
GetPlayerName (playerid, pidName, 255);
format(tmpp, sizeof(tmpp), "*** %s (ID:%d) a appeler un taxi***",pidName,pid);
SendClientMessageToAll(0x33AA33AA, tmpp);
GameTextForAll("]Un joueur a appeler un taxi !]", 3500, 5);
GameTextForPlayer(playerid,"~r~]Un joueur a appeler un taxi !]",3500,5);
}
}
}
}
Voila mon script mais le souci c'est que tous le monde voit le GameText et le SendMessage ! ;D Aidez-moi ! :D