02.10.2014, 14:55
Sorry.It was a bug on your script.
Код:
#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 enum DMINFO { DM1 } new dInfo[MAX_PLAYERS][DMINFO]; public OnPlayerSpawn(playerid) { if(dInfo[playerid][DM1] == 1) { SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422); GivePlayerMoney(playerid, -15000); 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); } if(dInfo[playerid][DM1] == 0) { TogglePlayerControllable(playerid,1); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/dm1", true) == 0) { dInfo[playerid][DM1] = 1; 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 1; } }