30.07.2012, 02:30
(
Последний раз редактировалось RLGaming; 30.07.2012 в 03:13.
)
Fixed, look at my last post please
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
//-------
Text3D:CreateDynamic3DTextLabel(text[], color, Float:x, Float:y, Float:z, Float:drawdistance, _, _, _, _, /*change your interior id here*/,_,_);
CMD:giverank(playerid, params[]) { new pID, value; if(PlayerInfo[playerid][pLSPD] >= 5) else return SendClientMessage(playerid, COLOR_WHITE, "You are not a member of the LSPD."); else if (sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giverank [playerid/partofname] [rank 1-5]"); else if (value < 1 || value > 5) return SendClientMessage(playerid, COLOR_WHITE, "Unknown rank! [1 - 5]"); else if(pID == INVALID_PLAYER_ID) return SCM(playerid, COLOR_WHITE,"Invalid player ID."); else { new pName[MAX_PLAYER_NAME], tName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); GetPlayerName(pID, tName, MAX_PLAYER_NAME); format(string, sizeof(string), "You have promoted %s to rank %i!", tName, value); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "You have been promoted to rank %i!", value, pName); SCM(pID, COLOR_LIGHTBLUE, string); PlayerInfo[pID][pLSPD] = value; return 1; } } |