SA-MP Forums Archive
resticted vehicles - 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: resticted vehicles (/showthread.php?tid=514835)



resticted vehicles - Lirbo - 23.05.2014

pawn Код:
new Float:X,Float:Y,Float:Z;

if(DOF2_GetInt(pFile(playerid),"Level")>3){GetPlayerPos(playerid,X,Y,Z) SetPlayerPos(playerid,X+1,Y+1,Z+1)}

// ALLL THIS FUNCTION I NEED IF PLAYER WILL BE IN: NoobVehilce.... i defined some faggios as NoobVehicle



Re: resticted vehicles - TheSimpleGuy - 23.05.2014

What do you mean, restrict the vehicles using the score or just a normal private vehicles or a Car System?


Re: resticted vehicles - Lirbo - 23.05.2014

Quote:
Originally Posted by TheSimpleGuy
Посмотреть сообщение
What do you mean, restrict the vehicles using the score or just a normal private vehicles or a Car System?
for example... if your score is <300 you cannot get in the car


Re: resticted vehicles - NaClchemistryK - 23.05.2014

it's a little too simple..
pawn Код:
if(GetPlayerScore(playerid) < 300)
{
   //your codes here... Kick the player for example..
   Kick(playerid);
}
Add it in the callback you want to.


Re: resticted vehicles - Lirbo - 23.05.2014

Quote:
Originally Posted by NaClchemistryK
Посмотреть сообщение
it's a little too simple..
pawn Код:
if(GetPlayerScore(playerid) < 300)
{
   //your codes here... Kick the player for example..
   Kick(playerid);
}
Add it in the callback you want to.
----------____________------------

PLEASE READ BEFORE REPLY
if someone have score <300 he will can't get in the vehicle


Re: resticted vehicles - Fred1993 - 23.05.2014

pawn Код:
if(GetPlayerScore(playerid) < 300)
{
       new Float:x, Float:y, Float:z;
 
    // Use GetPlayerPos, passing the 3 float variables we just created
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, 3.0);
}
this will feel like a slap


Re: resticted vehicles - NaClchemistryK - 23.05.2014

Quote:
Originally Posted by Lirbo
Посмотреть сообщение
for example... if your score is <300 you cannot get in the car
pawn Код:
if(GetPlayerScore(playerid) < 300)
{
   //your codes here... Kick the player for example..
   Kick(playerid);
}
it will prevent him from getting into the car. If the score is less than 300, then it iwll kick him. In the end, he will never be able to sit in a car. I don't see a problem there.


Re: resticted vehicles - Lirbo - 23.05.2014

Quote:
Originally Posted by Fred1993
Посмотреть сообщение
pawn Код:
if(GetPlayerScore(playerid) < 300)
{
       new Float:x, Float:y, Float:z;
 
    // Use GetPlayerPos, passing the 3 float variables we just created
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, 3.0);
}
FUCK THE SCORE!!!

pawn Код:
new Float:X,Float:Y,Float:Z;

if(DOF2_GetInt(pFile(playerid),"Level")>3){GetPlayerPos(playerid,X,Y,Z) SetPlayerPos(playerid,X+1,Y+1,Z+1)}

// ALLL THIS FUNCTION I NEED IF PLAYER WILL BE IN: NoobVehilce.... i defined some faggios as NoobVehicle



Re: resticted vehicles - Affan - 23.05.2014

pawn Код:
if(GetPlayerScore(playerid) < 300)
{
       RemovePlayerFromVehicle(playerid);
}



Re: resticted vehicles - Lirbo - 23.05.2014

Quote:
Originally Posted by Affan
Посмотреть сообщение
pawn Код:
if(GetPlayerScore(playerid) < 300)
{
       RemovePlayerFromVehicle(playerid);
}
LOOK my reply... i edited the thread please read it agian