pawn Код:
#include <a_samp>
new Text:Saicommand0;
new Text:Saicommand1;
new ddnghi[MAX_PLAYERS];
public OnGameModeInit()
{
Saicommand0 = TextDrawCreate(185.500000, 387.022277, "SG-RP");
TextDrawLetterSize(Saicommand0, 0.449999, 1.600000);
TextDrawAlignment(Saicommand0, 1);
TextDrawColor(Saicommand0, 16777215);
TextDrawSetShadow(Saicommand0, 0);
TextDrawSetOutline(Saicommand0, 1);
TextDrawBackgroundColor(Saicommand0, 51);
TextDrawFont(Saicommand0, 1);
TextDrawSetProportional(Saicommand0, 1);
Saicommand1 = TextDrawCreate(231.500000, 385.777801, "");
TextDrawLetterSize(Saicommand1, 0.449999, 1.600000);
TextDrawAlignment(Saicommand1, 1);
TextDrawColor(Saicommand1, -1);
TextDrawSetShadow(Saicommand1, 0);
TextDrawSetOutline(Saicommand1, 1);
TextDrawBackgroundColor(Saicommand1, 51);
TextDrawFont(Saicommand1, 1);
TextDrawSetProportional(Saicommand1, 1);
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
TextDrawShowForPlayer(playerid, Saicommand0);
TextDrawShowForPlayer(playerid, Saicommand1);
new string[500];
format(string,sizeof(string),": Khong co lenh (%s) trong he thong", cmdtext);
TextDrawSetString(Saicommand1, string);
ddnghi[playerid] = SetTimerEx("saicommand", 7000, true, "i", playerid);
}
return 1;
}
forward saicommand(playerid, cmdtext[]);
public saicommand(playerid, cmdtext[])
{
TextDrawHideForPlayer(playerid, Saicommand0);
TextDrawHideForPlayer(playerid, Saicommand1);
return 1;
}
Next time you ask for help, don't delete the contents of your post, this is what the forum is for...
By removing it, people search for things, and they can't see how you fixed a problem you had previously that is close to theirs.