14.08.2016, 13:48
Код:
new Text:pData[MAX_PLAYERS]; public OnPlayerConnect(playerid) { pData[playerid] = TextDrawCreate(154.200073, 146.346710, "My data"); TextDrawLetterSize(pData[playerid], 0.317999, 1.338666); TextDrawAlignment(pData[playerid], 1); TextDrawColor(pData[playerid], -1); TextDrawSetShadow(pData[playerid], 0); TextDrawSetOutline(pData[playerid], 1); TextDrawBackgroundColor(pData[playerid], 51); TextDrawFont(pData[playerid], 1); TextDrawSetProportional(pData[playerid], 1); } CMD:showscore(playerid, params[]) { TextDrawShowForPlayer(playerid, pData[MAX_PLAYERS]); return 1; } //Show all players data for the player who use /showscore.