Something is wrong !!!
#4

And thats the /spawn player command. When ever player gets killed/respawned he freezes and eventually crashes. This is happening to everyone.
Код:
COMMAND:spawn(playerid, params[])
{
    if(!PlayerInfo[playerid][power]) return SendClientError(playerid, CANT_USE_CMD);

	new iPlayer;
	if( sscanf ( params, "u", iPlayer))  return SCP(playerid, "[PlayerID/PartOfName]");
	if(!IsPlayerConnected(iPlayer)) return SendClientError(playerid, PLAYER_NOT_FOUND);
	format(iStr,sizeof(iStr),"{FFFFFF}[ {FF0000}ADMIN{FFFFFF} ] {FF6347}* %s has been respawned by Admin %s *",RPName(iPlayer),AnonAdmin(playerid));
	SendClientMessageToAll(COLOR_RED,iStr);
	format(iStr,sizeof(iStr),"5[ Admin ] %s has been respawned by %s.", PlayerName(iPlayer), PlayerName(playerid));
	iEcho(iStr);
	SpawnPlayer(iPlayer);
	TogglePlayerControllable(iPlayer,true);
	return 1;
}
Reply


Messages In This Thread
Something is wrong !!! - by xdarren - 15.10.2013, 11:44
Re: Something is wrong !!! - by PrivatioBoni - 15.10.2013, 11:49
Re: Something is wrong !!! - by xdarren - 15.10.2013, 11:53
Re: Something is wrong !!! - by xdarren - 15.10.2013, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)