Help Pls +Rep
#1

Hi all I want help by making teleport cmd i don't know how to make that and i don't know how to take the Float X Float Y Float Z Pos
Pls help
Reply
#2

Go Ingame do /save the file get saved inside Mydoucument/Gta sanandreas userfiles/SAMP/savedpostions.txt
The coordinates Like AddPlayerClass(SKIN,X,Y,Z,rotx.... something
copy values of x, y, z,
those are FLAT X , FLOAT Y and FLOAT Z
thats it!
EDIT:- i just saw you dont know even how to make command , read tutorials learn basics! in samp wiki and samp forums

Example command
Код:
     if(!strcmp(cmdtext, "/tp"))
     {
        SendClientMessage(playerid, 0xFFFFFFFF, "telelported!");
        SetPlayerPos(playerid,0.00,0.00,0.00);//it will teleport player at a farm!
        return 1;
     }
Reply
#3

k ty but i read TUT i do it but they gave me erorrs
Reply
#4

Well you need to know how to fix errors or show code+errors u got!
so ppl can better assisst you!
Welcome!
Reply
#5

This i use
Код:
if(strcmp("/bayside", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2271.0764, 2317.8457, 4.8202);
        SetPlayerFacingAngle(playerid, 180);
        SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Bayside.");
        return 1;
    }
Those Are Errors
Код:
C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50727) : error 010: invalid function or declaration
C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50732) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#6

are those lines correct ?
i mean lines u posted are> 50727 & 50732
goto pawno press CTRL + G and enter those line then u will be at error lines paste those!
Reply
#7

yes i use this in the GM so that why those lines
Reply
#8

Put it under OnPlayerCommandText.
Reply
#9

where do u mean under what ? pls show me cod
Reply
#10

under like
public OnPlayerCommandText etc..
at there some wher ein between it
Read tuts man !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)