03.08.2009, 17:27
To add cars just do /save when in a vehicle and you get a code like AddPlayerClass(102,889.7325,-1094.8798,24.0654,261.5727,0,0,0,0,0,0); and put it in lvdm.pwn to add that vehicle.
Same for /save on foot. add a code like AddPlayerClass(265,2030.4728,1543.2524,10.8203,95. 6421,0,0,0,0,0,0); //
Very hard at first to edit a gm with pawno, make sure you always got:
#include <a_samp> at the first line.
Adding a help command works with this under public OnPlayerCommandText(playerid, cmdtext[])
Be sure to define the colors after the include <a_samp> line.
Teleport examle:
If you scripted what you want, compile it, you either get errors or warning which you need to fix.
and add the script name to your server.cfg.
done.
Also check out the sa-mp scripting wiki.
Get the coordinates with /save or use a cheat.
I always use a cheat to get them. too many numbers on /save :/
Same for /save on foot. add a code like AddPlayerClass(265,2030.4728,1543.2524,10.8203,95. 6421,0,0,0,0,0,0); //
Very hard at first to edit a gm with pawno, make sure you always got:
#include <a_samp> at the first line.
Adding a help command works with this under public OnPlayerCommandText(playerid, cmdtext[])
Код:
if (strcmp(cmdtext, "/help", true) == 0) SendClientMessage(playerid, COLOR, "Check out /rules and /commands.");
Teleport examle:
pawn Код:
if(strcmp(cmdtext, "/teleport", true) == 0) {
SetPlayerPos, x, y, z);
return 1;
and add the script name to your server.cfg.
done.
Also check out the sa-mp scripting wiki.
Get the coordinates with /save or use a cheat.
I always use a cheat to get them. too many numbers on /save :/

