Tele cmd problem [URGENT]
#1

The code doesn't get exceuted IG. When I type the code, it says use /teleto...
PHP код:
COMMAND:teleto(playeridparams[])
{
    new 
Float:xFloat:yFloat:zplayername[MAX_PLAYER_NAME];
    if(
sscanf(params"fff"Float:xFloat:yFloat:z)) return SendClientMessage(playerid, -1"USAGE: /teleto [Location : x, y, z]");
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"ERROR: You are not RCON Admin");
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"ERROR: You need to be on foot to teleport to a location");
    
GetPlayerName(playeridplayernameSOS);
    
format(stringSOS"You have been teleported to %f, %f, %f !"xyz);
    
SendClientMessage(playerid0x33CCFFAAstring);
    
SetPlayerPos(playeridxyz);
    return 
1;

Reply


Messages In This Thread
Tele cmd problem [URGENT] - by Commands - 05.11.2015, 14:38
Re: Tele cmd problem [URGENT] - by AbyssMorgan - 05.11.2015, 14:44
Re: Tele cmd problem [URGENT] - by Commands - 06.11.2015, 14:32
Re: Tele cmd problem [URGENT] - by AbyssMorgan - 06.11.2015, 14:50

Forum Jump:


Users browsing this thread: 2 Guest(s)