Jump to content
  • 0

Problema IsPlayerInZone


Question

Posted

Folosesc IsPlayerInZone la zonele cu dm si nu inteleg dce nu ma respawneaza in dm ci ma da in random spawn

Am facut exact dp tutorial

http://www.sa-mp.ro/forum/index.php/topic,13195.0.html

Si pentru respawn in dm acest tutorial

http://www.sa-mp.ro/forum/index.php?topic=13123.0

Si fara playerinzone ma respawneaza in dm iar cand adaug isplayerinzone ma da un randomspawn dar sunt tot in dm ca treb sa dau /leave sa ies din dm!

Ma puteti ajuta sa-l fac!

6 answers to this question

Recommended Posts

Posted

Dami exact cum ai facut tu.

Am pus comanda in dm si respawnul merge,iar cand adaug isplayerinzone sa nu mai folosesca nici o comanda mor si nu ma respawneaza in dm

	if(!strcmp(cmdtext, "/m4", true))
	{
	ResetPlayerWeapons(playerid);
        IsPlayerInZone[ playerid ] = 1;
	SpawnInDM[playerid] = "/m4";
	SetPlayerRandomSpawnM4(playerid);
	GivePlayerWeapon(playerid,31 , 9999);
	SetPlayerFacingAngle(playerid, 0.0);
	new tName[MAX_PLAYER_NAME]; GetPlayerName(playerid, tName, sizeof(tName));
	 format(string, sizeof(string), " ~r~]~g~%s ~y~-> ~b~M4~r~(/m4) ]", tName);
	TextDrawDestroy(Text:Reclama);
   	Reclama = TextDrawCreate(340.000000, 435.000000, " ");
   	TextDrawFont(Reclama, 2);
   	TextDrawLetterSize(Reclama, 0.300000, 1.000000);    TextDrawBackgroundColor(Reclama, 0xFFFF00FF);
   	TextDrawColor(Reclama, 0x00C2ECFF);
   	TextDrawSetOutline(Reclama, 1);
   	TextDrawSetProportional(Reclama, 1);
   	TextDrawSetShadow(Reclama, 1);
   	TextDrawShowForAll(Reclama);
   	TextDrawSetString(Reclama, string);
   	SetTimer("reclamatime",10000,false);
	SetPlayerInterior(playerid, 0);
	GameTextForPlayer(playerid, "~h~~h~~g~] ~r~Welcome ~y~to ~b~M4 ~g~]", 5000, 5);
	SendClientMessage(playerid,COLOR_GREEN, "If you want to get out of DM use the command /leave!");
	return 1;
	}

Posted

Ce pluginuri:Imi poti da exemple?

Am comanda leave

	if(!strcmp(cmdtext, "/leave", true))
	{
	SpawnInDM[ playerid ] = " ";
	IsPlayerInZone[ playerid ] = 0;
	ResetPlayerWeapons(playerid);
	SetPlayerRandomSpawn(playerid);
 	SetPlayerHealth(playerid,100.0);
 	SetPlayerInterior(playerid, 0);
 	SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
	return 1;
	}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.