02.10.2014, 13:50
Hi!
i download a fs for dm zone
it has 1dm zone /dm1
it works but i want every body that join dm and die, respawn in dm1!
i download a fs for dm zone
it has 1dm zone /dm1
it works but i want every body that join dm and die, respawn in dm1!
Код:
#include <a_samp> #include <streamer> #include <sscanf> #include <core> #include <float> #define COLOR_RED 0xAA3333AA #define COLOR_BLUE 0x33CCFFAA #define COLOR_ERROR 0xFF6A6AFF #define COLOR_BOMB 0x96BD6AFF public OnPlayerSpawn(playerid) { TogglePlayerControllable(playerid,1); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/dm1", true) == 0) { SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422); GivePlayerMoney(playerid, -15000); SendClientMessage(playerid, COLOR_RED, ".: Your Join DM 1 :."); PlayerPlaySound(playerid ,3200,0,0,0); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerSkin(playerid, 293); GivePlayerWeapon(playerid, 24, 18000); GivePlayerWeapon(playerid, 25, 18000); GivePlayerWeapon(playerid, 16, 18000); GivePlayerWeapon(playerid, 28, 18000); GivePlayerWeapon(playerid, 31, 18000); return 1; } return 0; }