Script Request Thread #5

Quote:
Originally Posted by rwkskyline
Посмотреть сообщение
I need stock PlayerDistanceToPlayer....
to calculate distance between player...
foe example:

if(PlayerDistanceToPlayer(playerid,70)==1)
{
my code...
}
pawn Код:
stock PlayerToPlayer(playerid, targetid, Float:dist)
{
    new Float:pos[3];
    GetPlayerPos(targetid, pos[0], pos[1], pos[2]);
    return IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]);
}
Reply

Quote:
Originally Posted by rwkskyline
View Post
I need stock PlayerDistanceToPlayer....
to calculate distance between player...
foe example:

if(PlayerDistanceToPlayer(playerid,70)==1)
{
my code...
}
pawn Code:
stock Float: GetPlayerDistanceFromPlayer(playerid, giveplayerid) {
    new
        Float: X,
        Float: Y,
        Float: Z;
    if(GetPlayerPos(giveplayerid, X, Y, Z)) {
        return GetPlayerDistanceFromPoint(playerid, X, Y, Z);
    }
    return 0.0;
}
Quote:
Originally Posted by TheBetaFox
View Post
A simple votemode system so I can better comprehend the concept.
Click
Reply

Could somebody script me a /dice command please

Im talking about the dice cube game when you roll the 2 cubes with dots and they fall on random dots from 1 to 6.

-Thank You
Reply

pawn Code:
format(string, sizeof string, "%s", random(6));
SendClientMessage(playerid, Color, string);
Reply

I need call back OnPlayerChangePos(playerid, Float:OldX, Float:OldY, Float:OldZ, Float:X, Float:Y, Float:Z)
thanks
Reply

Check when a player press a move key, forward, back, left, right?
Reply

Quote:
Originally Posted by wouter0100
View Post
Check when a player press a move key, forward, back, left, right?
good idea ty
Reply

Quote:
Originally Posted by David Skrbic
View Post
I need call back OnPlayerChangePos(playerid, Float:OldX, Float:OldY, Float:OldZ, Float:X, Float:Y, Float:Z)
thanks
Just place a timer to get the new positions. Then compare them to see if the player moved
Reply

Quote:
Originally Posted by wouter0100
View Post
Check when a player press a move key, forward, back, left, right?
GetPlayerKeys

Click and it explains all you need. Just replace the SendClientMessage with the actions you want to perform
Reply

Could some one make me a spedometer filterscript / gamemode. I just want a basic worded one in the bottom right corner. Example "85 KPH" just in the corner. no boxes plain black txt. And i want it to stay on and cant be taken off and you dont need to type a command in to get it up.

Also a command so when i type /bmx i magicly get on a bmx. The bmx does not spawn, when i type it in i stay in the same play and i get on a bmx. also same but with NRG with command /nrg.
Reply

Can someone make a command to known player's fps?

Something like /fps id or a 3D text label :P
Reply

So, if(doors <100) ?
Reply

Quote:
Originally Posted by [Nuclear]Phoebe
Посмотреть сообщение
no commands its a dialog if u type /airlines u get a list of all the airlines u click one and u get stats of the airline and the airline owner has to invite u and i want there to be 24 airlines and u enter the dialog and u get there options Airline Info (in that Airline Owner, Co-owner, money, number of planes Max plane slots 24 but u can buy more [mentioned further down], and number of members) then for owners and coowners there is Withdraw Airline Cash and it takes the cash u imput in the dialog box and u get it and vice versa for Import Airline Cash then there is a box for owners called Respawn Airline Fleet and u get a box saying Are You Sure You Want To Respawn [Airline names] Fleet and if u click "Yes" it respawns the Airline Planes but if u type "No" it Takes You Back To The Original Dialog and then there is a Donate box u donate to the airline and then there is a Airline Fleet dialog For The Owner and u can look at where the fleet it and buy more airline airline plane slots for 5000000 and purchase airline planes which then spawn at Verdant Meadows Airport and then invite players to the airline and kick them or ban them from the airline and u can buy airline bases and rcon admins can use a command called /CreateBase [Price] and the Airline owner can buy the base for the set price and then rename it to wut ever name they want and they can sell there base
Anyone?
Reply

It's quiet alot that you ask for :/
start asking little pieces of the script
Reply

ok then right now i pretty much need a system to buy vehicles that only members can fly and a inviting system
Reply

Ok, hey.

I need a couple of usefull functions. I could probably do theese myself. But I could also epicly fail. And I have done a couple of times.

My system uses:
pawn Код:
PlayerInfo[playerid][AdminLevel]
Now I need the following functions.

pawn Код:
GetPlayerAdminLevel(playerid, level)
SetPlayerAdminLevel(playerid, level)
IsPlayerAAdmin(playerid)
Why not "IsPlayerAdmin" for the last one? Simply becuase thats RCON.

The lowest admin level is 1, and the highest is 5.

Thanks
-TechKid100
Reply

show your enum AdminLevel
Reply

Quote:
Originally Posted by KoczkaHUN
Посмотреть сообщение
show your enum AdminLevel
Thats not an enum...

Quote:
Originally Posted by techkid100
Посмотреть сообщение
Ok, hey.

I need a couple of usefull functions. I could probably do theese myself. But I could also epicly fail. And I have done a couple of times.

My system uses:
pawn Код:
PlayerInfo[playerid][AdminLevel]
Now I need the following functions.

pawn Код:
GetPlayerAdminLevel(playerid, level)
SetPlayerAdminLevel(playerid, level)
IsPlayerAAdmin(playerid)
Why not "IsPlayerAdmin" for the last one? Simply becuase thats RCON.

The lowest admin level is 1, and the highest is 5.

Thanks
-TechKid100
Why do you even want that, just use

pawn Код:
level = PlayerInfo[playerid][AdminLevel]; // to get it
PlayerInfo[playerid][AdminLevel] = 5; // to set it
if(PlayerInfo[playerid][AdminLevel]) {} // to check
You just could pack in into macros
pawn Код:
#define GetPlayerAdminLevel(%0) PlayerInfo[%0][AdminLevel]
#define SetPlayerAdminLevel(%0,%1) (PlayerInfo[%0][AdminLevel]=%1)
#define IsPlayerAdmin GetPlayerAdminLevel
Reply

forget the airline system can i have a Plane Fuel System that i can type a command and it creates a Fuel area for the planes to refuel and if i Hold H the plane refuels please
Reply

Ok thanks. Much apericated.

:P

Btw this is my own system. :P
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)