SetPlayerPos - VW changing?
#1

Fixed, look at my last post please
Reply
#2

You forgot SetPlayerInterior
Reply
#3

Im such a retard, didn't even know that existed, thank you!

Also, im trying to set 3D text there, but when I go to the interior it's not there?
Reply
#4

Use streamer plugin.
pawn Код:
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*/,_,_);
Reply
#5

Fixed it all, thanks!

Also:
Quote:

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;
}
}

My /giverank command for LSPD is buggy, I need it so R5 and above can use the command, i've tried alot of things but im really confused with this one.. 5 - 6 Are the ranks I want to be able to use it, NOBODY lower, could anyone do this pleaase?
Reply
#6

I need to see the variable in which the FACTION ID and RANK are stored.
Reply
#7

It's just one, pLSPD.

And yeah, i've made a system in my stats where if your basically like [pLSPD] == 2; then you'll be rank Officer, then 3 Corporal, etc, till 6

4 Sergeant
5 Lieutentnat
6 Chief
Reply
#8

Fixed this, thanks for the help guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)