i need help
#1

hello, i'm a beginning scripter and i have some questions
first Q: you have AddStaticVehicle and AddStaticVehicleEx, what's the Difference?
second Q: AddStaticPickup, how can i find the code for it, in game mode?
third Q:new Float:gRandomPlayerSpawns[23][3] = {
{1958.3783,1343.1572,15.3746},
{2199.6531,1393.3678,10.8203},
{2483.5977,1222.0825,10.8203},
i've cut this from a random script, it's for player spawn, how can i get the code?
last Q: how can i make menu's, adn how can i get it on the screen Example: /cmds, how can i make such things?
Reply
#2

Quote:
Originally Posted by Eazy1993
hello, i'm a beginning scripter and i have some questions
first Q: you have AddStaticVehicle and AddStaticVehicleEx, what's the Difference?
second Q: AddStaticPickup, how can i find the code for it, in game mode?
third Q:new Float:gRandomPlayerSpawns[23][3] = {
{1958.3783,1343.1572,15.3746},
{2199.6531,1393.3678,10.8203},
{2483.5977,1222.0825,10.8203},
i've cut this from a random script, it's for player spawn, how can i get the code?
last Q: how can i make menu's, adn how can i get it on the screen Example: /cmds, how can i make such things?
Answer1: Check Here
See the difference? They have different parameters.

Answer2: I really dont understand what you said but:
And The Rest, I dont know what your saying. But ALL of your answers are found here,
I don't know why people just post and dont read the stickies.

Quote:
Originally Posted by Eazy1993
hello, i'm a beginning scripter and i have some questions
A Topic says: "Are you a scripting beginner?"


Reply
#3

Since your a beginner, it is best to check out the SA:MP Wiki. It contains everything (nearly) that you will need to guide you trhough scripting. All the native functions are there, etc. Look through the tutorials if you want. https://sampwiki.blast.hk/wiki/Main_Page

When creating commands, i'd recommend using zcmd or dcmd.

Answers:

1. AddStaticVehicleEx is the same as AddStaticVehicleEx except it allows you to set a respawn time for when the vehicle is destroyed.
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

2. https://sampwiki.blast.hk/wiki/AddStaticPickup

3.
UnderOnGameModeInit
pawn Код:
new rand = random(sizeof(MainSpawns));
Example: (use the bit in bold)
AddPlayerClassEx( 15, 0, gRandomPlayerSpawns[rand][0],gRandomPlayerSpawns[rand][1],gRandomPlayerSpawns[rand][2], 0 26, 36, 28, 150, 0, 0 );

4. https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu
or menu creator


Other stuff:
Basic command tutorial http://forum.sa-mp.com/index.php?topic=100530.0

Good Luck.

EDIT: LOL, some of the answers were answered whilst typing this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)