SA-MP Forums Archive
SetPlayerPos - VW changing? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerPos - VW changing? (/showthread.php?tid=364233)



/giverank - Confused - RLGaming - 30.07.2012

Fixed, look at my last post please


Re: SetPlayerPos - VW changing? - newbienoob - 30.07.2012

You forgot SetPlayerInterior


Re: SetPlayerPos - VW changing? - RLGaming - 30.07.2012

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?


Re: SetPlayerPos - VW changing? - newbienoob - 30.07.2012

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*/,_,_);



Re: SetPlayerPos - VW changing? - RLGaming - 30.07.2012

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?


Re: SetPlayerPos - VW changing? - maramizo - 30.07.2012

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


Re: SetPlayerPos - VW changing? - RLGaming - 30.07.2012

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


Re: SetPlayerPos - VW changing? - RLGaming - 30.07.2012

Fixed this, thanks for the help guys.