15.04.2014, 22:14
When a player type /shop the other one gets the textdraw too and they cant be destroyed after that when clicking mmb, why ?
pawn Code:
CMD:shop(playerid, params[])
{
#pragma unused params
if(Dead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead.");
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
RemoveAllTextDraws(playerid);
TextDrawShowForPlayer(i, ShopTD0[playerid]);
TextDrawShowForPlayer(i, ShopTD1[playerid]);
TextDrawShowForPlayer(i, ShopTD2[playerid]);
TextDrawShowForPlayer(i, ShopTD3[playerid]);
TextDrawShowForPlayer(i, ShopTD4[playerid]);
TextDrawShowForPlayer(i, ShopTD5[playerid]);
TextDrawShowForPlayer(i, ShopTD6[playerid]);
TextDrawShowForPlayer(i, ShopTD7[playerid]);
}
}
Shop[playerid] = 1;
return 1;
}