06.01.2012, 23:41
Boas, eu tou fazendo um server de DM e queria fazer um Teleporte (/DM 1) e que nesse teleporte as pessoas perdessem todas as armas que tem e ganhasem as que eu quero que ganhe.
Cmd
if(strcmp("/dm1", cmdtext, true, 10) == 0)
{
CarregarObjetosPlayer(playerid);
GivePlayerWeapon(playerid, 35, 800);
GameTextForPlayer(playerid, "~n~~g~~h~DM 1", 5000, 5);
MensagemTeleporte(playerid, "DM 1");
SetPlayerPos(playerid, 2450.3457, -2880.7126, 7.601;
SetPlayerFacingAngle(playerid, 178.5182);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;
Cmd
if(strcmp("/dm1", cmdtext, true, 10) == 0)
{
CarregarObjetosPlayer(playerid);
GivePlayerWeapon(playerid, 35, 800);
GameTextForPlayer(playerid, "~n~~g~~h~DM 1", 5000, 5);
MensagemTeleporte(playerid, "DM 1");
SetPlayerPos(playerid, 2450.3457, -2880.7126, 7.601;
SetPlayerFacingAngle(playerid, 178.5182);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;