resticted vehicles
#1

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
Reply
#2

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

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
Reply
#4

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.
Reply
#5

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
Reply
#6

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
Reply
#7

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.
Reply
#8

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
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 5 Guest(s)