16.04.2014, 14:39
When i type this command it dont show the rules, it show another textdraws box, why
pawn Код:
CMD:forcerules(playerid, params[])
{
#pragma unused params
if(!IsCnRAdmin(playerid)) return UnknownCMD(playerid);
if(Dead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead.");
if(IsPlayerConnected(playerid))
{
RemoveAllTextDraws(playerid);
TextDrawShowForAll(ForceRulesText0[playerid]);
TextDrawShowForAll(ForceRulesText1[playerid]);
TextDrawShowForAll(ForceRulesText2[playerid]);
TextDrawShowForAll(ForceRulesText3[playerid]);
TextDrawShowForAll(ForceRulesText4[playerid]);
TextDrawShowForAll(ForceRulesText5[playerid]);
TextDrawShowForAll(ForceRulesText6[playerid]);
TextDrawShowForAll(ForceRulesText7[playerid]);
TextDrawShowForAll(ForceRulesText8[playerid]);
TextDrawShowForAll(ForceRulesText9[playerid]);
TextDrawShowForAll(ForceRulesText10[playerid]);
TextDrawShowForAll(ForceRulesText11[playerid]);
TextDrawShowForAll(ForceRulesText11[playerid]);
TextDrawShowForAll(ForceRulesText12[playerid]);
}
SetTimerEx("ForceRulesDestroy", 10000, false, "i", playerid);
return 1;
}