Help: Command to make Player say certain thing
#2

PHP Code:
CMD:greet(playeridparams[])
{
new 
MSG[250];
new 
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
if(
PlayerInfo[playerid][pCop] == true)
    {
    
format(MSG,sizeof(MSG),"Hello, I'm %s [Police Officer] with the Los Santos Police Department. Do you know why I stopped you today?"Name);
    
SendClientMessageToAll(GREEN,MSG);
return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)