how can i add trains and how to add site ?
#1

hello i got a question about trains and to put site .

Ok i got a server and it is PEN SF mode but as i dont have any trains there i want to add them.


How can i add trains to my server how and where,can u guys tell me how to add trains please.

I also need to add somethnig like /site to people see our website forums .

Reply
#2

lol search id on wiki and use a admin script or sthing else to create a train... drive it to the right position where you wantto have it and save the position
cheeerz
Reply
#3

but how do you save that position
do you just do /save ??
Reply
#4

Well for the id i know now but as the position can u put here something like a code to i add there cause i dont undesrtand what u saying
Reply
#5

example:
Addstaticnoob (1275,1,207.0323,-129.8516,1003.507;

and /site
use this

if(strcmp(cmd, "/site", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1,"our website is www.balbal.com");
SendClientMessage(playerid, COLOR_GRAD1,"our fourm is www.forum.balbal.com");
}
return 1;
}
Reply
#6

Quote:
Originally Posted by propilot
example:
Addstaticnoob (1275,1,207.0323,-129.8516,1003.507;

and /site
use this

if(strcmp(cmd, "/site", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1,"our website is www.balbal.com");
SendClientMessage(playerid, COLOR_GRAD1,"our fourm is www.forum.balbal.com");
}
return 1;
}
I try to add this but when i go to my server i try to type /site but it dont works .

where is thsi code to put can u tell me and is thsi on my mode PEN SF pwn or is other place.

If u want send me a pm i send to u my pen sf mode and u can change thsi if u can cause i dont know i try and nothnig works i dont see a thing
Reply
#7

Place it at: OnPlayerCommandText
Reply
#8

pawn Код:
if(!strcmp(cmd,"/site",true)) return SendClientMessage(playerid,0xFFFFFFAA,"forum.sa-mp.com.");
But this code might have respond you a message - "SERVER: Unknown command."
I ain't sure about that.
Reply
#9

Why the crap do you need IsPlayerConnected? (person above who used it)

How can someone that is not connected have called a command?
Reply
#10

Thx m8 for teh help.

Other thing is now i want to put this with color like yelow can u tell me wht is code to put on that,also i need to know the exact location to put tram and train in SF cause i dont know where are the veicules in my PEN SF PWN and to they stay there.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)