pawn Код:
#include <a_samp>
#include <gl_common>
#define COLOR_PURPLE 0x9900FFAA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_GREEN 0x33AA33AA
#define Bilythekid 0x00FF0096
#if defined FILTERSCRIPT
public OnFilterScriptExit()
{
return true;
}
#else
main()
{
print("\n----------------------------------");
print(" .");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
return true;
}
public OnGameModeExit()
{
return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new tmp[256];
new Message[256];
new gMessage[256];
new pName[MAX_PLAYER_NAME+1];
new iName[MAX_PLAYER_NAME+1];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp("/pm", cmd, true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp) || strlen(tmp) > 5) {
SendClientMessage(playerid,0x00FF0096,"Utilize : /pm [id] (menssagem)");
return true;
}
new id = strval(tmp);
gMessage = strrest(cmdtext,idx);
if(!strlen(gMessage)) {
SendClientMessage(playerid,0x00FF0096,"Utilize: /pm [id] (menssagem)");
return true;
}
if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,0x00FF0096,"O Jogador nгo Conectado");
return true;
}
if(playerid != id) {
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pName,sizeof(pName));
format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);
GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~w~MENSAGEM PRIVADA ENVIADA",3000,3);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);
SendClientMessage(id,COLOR_VIOLET,Message);
GameTextForPlayer(id,"~n~~n~~n~~n~~n~~n~~w~MENSAGEM PRIVADA RECEBIDA",3000,3);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
printf("PM: %s",Message);
}
else {
GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~w~ESTE ID E SEU!!",3000,3);
}
return true;
}
return false;
}
eu uso esse ae mude do seu gosto!
vc viu a mensagem qque eu escrevi pra ti naquele outro post ?
como eu disse comeзe a pesquisar !