03.10.2012, 15:33
I need help with texdraws so when player join an area like /aa texdraw will show that player joined /aa, giving +rep
CMD:aa(playerid, params[])
{
SetPlayerPos(playerid, 380.5123,2544.0908,21.0001);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), " %s has Teleported to Abandoned Airport (/aa)",pName);
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
Put this next after set player postion :D | " new string[18]; format(string, sizeof(string), "Welcome To /AA "); GameTextForPlayer(playerid, string, 1000, 0); return 1; } // Text on Chat :) [ Color = Red ] GetPlayerName(playerid, Name, sizeof(Name)); format(String,sizeof(String),"Welcome to {FF0000}/AA{00FF00}%s",Name[playerid]); SendClientMessageToAll(playerid,0xFF0000FF,String);