Quote:
Originally Posted by Mihai_Marius
poi eu am modul gtarp si am incercat sa fac dupa /ad sau altele dar nush cum sa fac ma exact
|
pui asta
if(strcmp(cmd, "/ad", true) == 0)
{
new message[256];
new playername[MAX_PLAYER_NAME];
strmid(message, cmdtext, 3, strlen(cmdtext));
GetPlayerName(playerid, playername, sizeof(playername));
if(!strlen(message))
{
SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
}
else
{
format(string, sizeof(string), "[Radio] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);
printf(string);
SendClientMessageToAll(0xADFF2FAA, string);
GivePlayerMoney(playerid,-2000);
}
}