|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2011
Posts: 578
Reputation: 5
|
ive been searching hours with my freind, and we just cant seem to get this command.
We are looking for a /goto command and a /gethere command using DCMD. This is for an admin script so the if player is an a admin looks like this. Code:
if(PInfo[playerid][Level] < 2) return SendClientMessage(playerid,COLOR_RED,"You need to be level 2 to use this command!"); |
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
pawn Code:
|
|
|
#3 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2011
Posts: 578
Reputation: 5
|
Quote:
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Romanian
Posts: 861
Reputation: 15
|
try this:
Code:
dcmd_goto(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!");
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /goto [playerid | name]");
else if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA, "That player is not connected");
{
new Float:PosX, Float:PosY, Float:PosZ;
GetPlayerPos(targetid, PosX, PosY, PosZ);
SetPlayerPos(playerid, PosX, PosY, PosZ);
SetPlayerInterior(playerid, GetPlayerInterior(targetid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
}
}
return 1;
}
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2011
Posts: 578
Reputation: 5
|
For every command i have Goto or Gethere it sends back UNkown Server command
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2008
Location: 1000
Posts: 1,012
Reputation: 83
|
Did you forget to add
Code:
dcmd(goto,4,cmdtext); |
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2011
Posts: 578
Reputation: 5
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Commande Goto et gethere | Tommynico | Français/French | 0 | 07/03/2011 06:29 PM |
| 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 |