28.02.2011, 14:34
(
Last edited by Madsen; 28/02/2011 at 04:19 PM.
)
i am makeing a dm mode
and i want a shotgun room. I am makeing it like: when a player write /sw he goes into shotgunwar. when he dies in there he respawns there again.
the command they write to get into the room
public OnPlayerDeath(playerid, killerid, reason)
i dont get any warnings or errors. but i just spawn at standard place.
hope you can help me with this problem, i have tried everything that i can do
and i want a shotgun room. I am makeing it like: when a player write /sw he goes into shotgunwar. when he dies in there he respawns there again.
the command they write to get into the room
Code:
if (strcmp("/sw", cmdtext, true, 10) == 0) { ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 25, 1000); SetPlayerPos(playerid, -19.0286,-175.3378,1003.5469); SetPlayerFacingAngle(playerid, 330.8037); SetPlayerVirtualWorld(playerid, 2); SetPlayerInterior(playerid, 17); return 1; }
Code:
if IsPlayerInRangeOfPoint(playerid, 100, -19.0286,-175.3378,1003.5469) *then SetPlayerInterior(playerid, 17) && SetPlayerPos(playerid, -19.0286,-175.3378,1003.5469) && SetPlayerFacingAngle(playerid, 330.8037) && GivePlayerWeapon(playerid, 25, 1000) && SetPlayerHealth(playerid, 100) && SetPlayerArmour(playerid, 100); else SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); return 1;
hope you can help me with this problem, i have tried everything that i can do