Major zcmd issue
#3

Quote:

CMDm(playerid,params[])
{
new PID;
new message;
if(sscanf(params, "us[32]", message))
{
return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /pm <playerid> <message>");
}
if(!IsPlayerConnected(PID))
return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Player is not connected!");

new pmsg[256];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(pmsg,sizeof(pmsg),"PM from %s(%d): %s",pname,playerid,message);

new pidmsg[256];
new pidname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pidname,sizeof(pidname));
format(pidmsg,sizeof(pidmsg),"PM to %s(%d): %s",pidname,PID,message);
SendClientMessage(PID, 0xFFFF00AA, pmsg);
SendClientMessage(playerid, 0xFFFF00AA, pidmsg);
return 1;
}

This is how mine is
Reply


Messages In This Thread
Major zcmd issue - by Kurtis96z - 03.06.2012, 05:45
Re: Major zcmd issue - by cosbraa - 03.06.2012, 06:05
Re: Major zcmd issue - by Kurtis96z - 03.06.2012, 06:06
Re: Major zcmd issue - by [ABK]Antonio - 03.06.2012, 06:19
Re: Major zcmd issue - by cosbraa - 03.06.2012, 06:23
Re: Major zcmd issue - by Kurtis96z - 03.06.2012, 06:25
Re: Major zcmd issue - by cosbraa - 03.06.2012, 06:57
Re: Major zcmd issue - by Kurtis96z - 03.06.2012, 13:54
Re: Major zcmd issue - by iggy1 - 03.06.2012, 14:01
Re: Major zcmd issue - by milanosie - 03.06.2012, 14:02

Forum Jump:


Users browsing this thread: 2 Guest(s)