|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jul 2010
Posts: 127
Reputation: 9
|
Can some1 plzz hel me with the "/goto" command i got this:
Code:
command(goto, playerid, params[])
{
new ID;
new vehicleid;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_RED, "USAGE: /goto [id]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
else if(IsPlayerInVehicle(playerid, vehicleid))
{
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
SetVehiclePos(vehicleid, x+1, y+1, z);
}
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
return 1;
}
.. Thank you! BTW!: no error's/warning's!
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Apr 2011
Location: Do you Need To know.
Posts: 24
Reputation: 0
|
Try This
pawn Code:
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Jul 2010
Posts: 127
Reputation: 9
|
Thank you man! It works! And Thank You for fast reply
!EDIT: lol i what a little "fail" :P but thanks anyway LOL Last edited by mrsamp; 17/08/2011 at 04:42 PM. Reason: FAIL |
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: Apr 2011
Location: Do you Need To know.
Posts: 24
Reputation: 0
|
Your welcome.
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jul 2010
Posts: 127
Reputation: 9
|
lol but it doesnt work... it dont teleport to player only to yourself...
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2011
Posts: 1,891
Reputation: 541
|
pawn Code:
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Jul 2010
Posts: 127
Reputation: 9
|
Thanks!
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I need some help with a goto command and gethere | Shockey HD | Help Archive | 6 | 19/07/2011 07:29 AM |
| Need Command Goto (ZCMD) | SamyRomafia | Help Archive | 5 | 01/01/2011 07:42 PM |
| Problem with /goto command | sobolanux | Help Archive | 0 | 10/04/2010 01:35 PM |
| How to make a /gethere «id» and /goto «id» command? | Rubennnnn | Help Archive | 12 | 02/12/2009 05:42 AM |
| /getgun & /armour & /goto command | WanabePC | Help Archive | 3 | 22/04/2009 06:49 PM |