pm help needed
#9

PHP код:
CMD:pm(playerid,params[])
{
    new 
target,tName[MAX_PLAYER_NAME],message[100],pName[MAX_PLAYER_NAME],string[124];
    if(
sscanf(params,"us[100]",target,message)) return SendClientMessage(playerid,-1,"Error:/pm [playerid] [message]");
    if(!
IsPlayerConnected(target)) return SendClientMessage(playerid,-1,"ERROR:Player not connected");
    
GetPlayerName(target,tName,sizeof(tName));
    
GetPlayerName(playerid,pName,sizeof(pName));
    
format(string,sizeof(string),"PM From %s - %s");
    
GameTextForPlayer(target,string,10000,0);
     return 
1;

Reply


Messages In This Thread
pm help needed - by ashwinsekhari - 23.10.2012, 10:45
Re: pm help needed - by Anthony © - 23.10.2012, 10:47
Re: pm help needed - by ashwinsekhari - 23.10.2012, 10:52
Re: pm help needed - by Lordzy - 23.10.2012, 10:58
Re: pm help needed - by doreto - 23.10.2012, 11:10
Re: pm help needed - by ashwinsekhari - 23.10.2012, 11:32
Re: pm help needed - by GangsterLifeRP - 23.10.2012, 19:33
Re: pm help needed - by DaizeN - 23.10.2012, 21:51
Re: pm help needed - by tyler12 - 23.10.2012, 21:55
Re: pm help needed - by ashwinsekhari - 24.10.2012, 03:57

Forum Jump:


Users browsing this thread: 1 Guest(s)