11.06.2015, 03:48
Hola amigos del samp, fueran tan amable si alguien que me ayude con el comando /ir ID ya que lo busco y no encuentro ese script.. desde ya muchas gracias.
// [ DEVELOPMENT GAMEMODE ]
// INCLUDES:
#include <a_samp>
#include <sscanf2>
#include <foreach>
#include <zcmd>
// MAIN:
main()
{
print("Development Mode: player_teleports.amx");
}
// CALLBACKS:
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
// COMMANDS:
CMD:goto(playerid, params[])
{
new string[144], lookupid;
if(sscanf(params, "u", lookupid)) return SendClientMessage(playerid, -1, "Usage: /goto (id/name).");
if(!IsPlayerConnected(lookupid)) return SendClientMessage(playerid, -1, "That player isn't connected to the server.");
new Float:x, Float:y, Float:z;
GetPlayerPos(lookupid, x, y, z);
SetPlayerPos(playerid, x, y + 1.5, z);
format(string, sizeof(string), "You have teleported to %s's (%d) location.", PlayerName(lookupid), lookupid);
SendClientMessage(playerid, -1, string);
return 1;
}
CMD:bring(playerid, params[])
{
new string[144], lookupid;
if(sscanf(params, "u", lookupid)) return SendClientMessage(playerid, -1, "Usage: /bring (id/name).");
if(!IsPlayerConnected(lookupid)) return SendClientMessage(playerid, -1, "That player isn't connected to the server.");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(lookupid, x, y + 1.5, z);
format(string, sizeof(string), "You have brought %s (%d) to your location.", PlayerName(lookupid), lookupid);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "%s (%d) has brought you to their location.", PlayerName(playerid), playerid);
SendClientMessage(lookupid, -1, string);
return 1;
}
CMD:bringall(playerid, params[])
{
new string[144], Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
foreach(new i: Player)
{
SetPlayerPos(i, x, y, z);
format(string, sizeof(string), "%s (%d) has brought you to their location.", PlayerName(playerid), playerid);
SendClientMessage(i, -1, string);
}
SendClientMessage(playerid, -1, "You have brought everyone to your location.");
return 1;
}
// FUNCTIONS:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}
|
Se supone que en esta secciуn se ayuda con una explicaciуn (ya sea breve, corta, larga, ...).
Acordate que no es el Pedido de scripts. Saludos. |