Re: Script Request Thread #5 -
MadeMan - 17.08.2011
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]);
}
AW: Re: Script Request Thread #5 -
Nero_3D - 17.08.2011
Quote:
Originally Posted by rwkskyline
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
A simple votemode system so I can better comprehend the concept.
|
Click
Re: Script Request Thread #5 -
Compton - 17.08.2011
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
Re: Script Request Thread #5 -
wouter0100 - 17.08.2011
pawn Code:
format(string, sizeof string, "%s", random(6));
SendClientMessage(playerid, Color, string);
Re: Script Request Thread #5 -
MicroD - 17.08.2011
I need call back OnPlayerChangePos(playerid, Float:OldX, Float:OldY, Float:OldZ, Float:X, Float:Y, Float:Z)
thanks
Re: Script Request Thread #5 -
wouter0100 - 17.08.2011
Check when a player press a move key, forward, back, left, right?
Re: Script Request Thread #5 -
MicroD - 17.08.2011
Quote:
Originally Posted by wouter0100
Check when a player press a move key, forward, back, left, right?
|
good idea ty
Re: Script Request Thread #5 -
KingTurtle - 17.08.2011
Quote:
Originally Posted by David Skrbic
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
Re: Script Request Thread #5 -
KingTurtle - 17.08.2011
Quote:
Originally Posted by wouter0100
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
Re: Script Request Thread #5 -
xbox360boy66 - 17.08.2011
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.
Re: Script Request Thread #5 -
BlackLeopard - 17.08.2011
Can someone make a command to known player's fps?
Something like /fps id or a 3D text label :P
Re: Script Request Thread #5 -
knackworst - 29.08.2011
So, if(doors <100) ?
Re: AW: Re: Script Request Thread #5 -
Zonoya - 29.08.2011
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?
Re: Script Request Thread #5 -
knackworst - 29.08.2011
It's quiet alot that you ask for :/
start asking little pieces of the script
Re: Script Request Thread #5 -
Zonoya - 29.08.2011
ok then right now i pretty much need a system to buy vehicles that only members can fly and a inviting system
Re: Script Request Thread #5 -
Odyssey - 30.08.2011
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
Re: Script Request Thread #5 -
KoczkaHUN - 30.08.2011
show your enum AdminLevel
AW: Re: Script Request Thread #5 -
Nero_3D - 30.08.2011
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
Re: Script Request Thread #5 -
Zonoya - 30.08.2011
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
Re: Script Request Thread #5 -
Odyssey - 30.08.2011
Ok thanks. Much apericated.
:P
Btw this is my own system. :P