HELP PLEASE
#7

Quote:
Originally Posted by Darkwood17
Посмотреть сообщение
Was that needed? You've defined some things that he probably haven't defined. This code just won't work for him.


Anyways if you wanted a respawn command, here's a better version:
Код:
CMD:respawn(playerid, params[])
{
	new ChosenPlayerID;
	if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Only admins can use this command.");
	if (sscanf(params, "u", ChosenPlayerID)) SendClientMessage(playerid, -1, "Usage: /respawn <playerid>");
	if (ChosenPlayerID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "That player is not connected");
	SpawnPlayer(ChosenPlayerID);
	SendClientMessage(SpawnPlayer, -1, "You have been respawned by admin.");
	SendClientMessage(SpawnPlayer, -1, "You respawned the chosen player.");
	return 1;
}
so I am sorry . I am new and I just see it on my pc
Reply


Messages In This Thread
HELP PLEASE - by DAREL - 13.05.2016, 21:31
Re: HELP PLEASE - by Dayrion - 13.05.2016, 21:34
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 21:55
Re: HELP PLEASE - by BloodyDexter - 13.05.2016, 22:03
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 22:11
Re: HELP PLEASE - by Dayrion - 13.05.2016, 22:13
Re: HELP PLEASE - by BloodyDexter - 13.05.2016, 22:14
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)