How can i make this so a user can choose the name?
#7

Quote:
Originally Posted by [TLV
ReVo_ ]
pawn Код:
if(strcmp(cmd, "/player_on", true) == 0) {
        new scritta[256];
        scritta = strtok(cmdtext,idx);
    if(IsPlayerAdmin(playerid))
    {
         if(!LabelCreated[playerid])
         {
            label2[playerid] = Create3DTextLabel(scritta,COLOR_LIGHTBLUE,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.7);
        SendClientMessage(playerid, COLOR_YELLOW, "** Player Name Tag = On");
             LabelCreated[playerid] = 1;
          }
          else
          {
            Update3DTextLabelText(label2[playerid],COLOR_LIGHTBLUE,scritta);
        }
        }
      return 1;
}
Create var 'LabelCreated[MAX_PLAYERS]'
So can the player now type /player_on [Text] ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)