[Ajuda] Melhorar Comando /sinc
#1

galera eu fiz um comando /sinc que o player digita e й sicroninzado
Код:
//---------------- Sincronizar ----------------------------
if(strcmp(cmdtext, "/sinc", true) == 0 || strcmp(cmdtext, "/sincronizar", true) == 0)
{
if(GetPlayerState(playerid) == 9|| GetPlayerState(playerid) == 5 || GetPlayerState(playerid) == 6 ||GetPlayerState(playerid) == 4|| GetPlayerState(playerid) == 0 || sincronizando[playerid] == 1)
{
	SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode sincronizar agora!");
	return 1;
}
 	sincronizando[playerid] = 1;
 	virt[playerid] = GetPlayerVirtualWorld(playerid);
	interior[playerid] = GetPlayerInterior(playerid);
	skinneg[playerid] = GetPlayerSkin(playerid);
	GetPlayerArmour(playerid,APP[playerid]);
	GetPlayerHealth(playerid,PlayerHPP[playerid]);
	GetPlayerFacingAngle(playerid,FaceAngle[playerid]);
	GetPlayerPos(playerid,xx[playerid],yy[playerid],zz[playerid]);
	GetPlayerWeaponData(playerid,1,gunsinc[1][playerid],ammoo[1][playerid]);
	GetPlayerWeaponData(playerid,2,gunsinc[2][playerid],ammoo[2][playerid]);
	GetPlayerWeaponData(playerid,3,gunsinc[3][playerid],ammoo[3][playerid]);
	GetPlayerWeaponData(playerid,4,gunsinc[4][playerid],ammoo[4][playerid]);
	GetPlayerWeaponData(playerid,5,gunsinc[5][playerid],ammoo[5][playerid]);
	GetPlayerWeaponData(playerid,6,gunsinc[6][playerid],ammoo[6][playerid]);
	GetPlayerWeaponData(playerid,7,gunsinc[7][playerid],ammoo[7][playerid]);
	GetPlayerWeaponData(playerid,8,gunsinc[8][playerid],ammoo[8][playerid]);
	GetPlayerWeaponData(playerid,9,gunsinc[9][playerid],ammoo[9][playerid]);
	GetPlayerWeaponData(playerid,10,gunsinc[10][playerid],ammoo[10][playerid]);
	GetPlayerWeaponData(playerid,11,gunsinc[11][playerid],ammoo[11][playerid]);
	GetPlayerWeaponData(playerid,12,gunsinc[12][playerid],ammoo[12][playerid]);
	if(IsPlayerInAnyVehicle(playerid))
	{
	vehicledd[playerid] = 1;
	VehicleIDD[playerid] = GetPlayerVehicleID(playerid);
	}
	SpawnPlayer(playerid);
	TempoSinc = SetTimerEx("Sincronizar", 500, 0, "i", playerid);
	return 1;
}
so que eu queria transformar em um comando que o adm dece no player, nao o player dece sozinho, alguem pode me ajuda ai?
Reply


Messages In This Thread
[Ajuda] Melhorar Comando /sinc - by Styles-P - 17.03.2011, 03:12
Re: [AJUDA] Melhorar Comando /sinc - by rjjj - 17.03.2011, 03:26

Forum Jump:


Users browsing this thread: 1 Guest(s)