03.02.2012, 16:31
Hello guys.I tried to make /mask command but the command dont work,nothing happens.Here is my code
pawn Код:
if(strcmp(cmd, "/maskon", true) == 0)
{
for(new i = 0; i < PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
new sendername[MAX_PLAYER_NAME];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
Mask[playerid] = Create3DTextLabel(sendername,COLOR_WHITE,x,y,z+2,20,0,0);
Attach3DTextLabelToPlayer(Mask[playerid],playerid,0.0,0.0,0.0);
}
return 1;
}