23.02.2009, 16:59
Well i dont know how to get back weapons when someone writes /exit
heres the code
plz someone help
heres the code
Код:
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { UsePlayerPedAnims(); return 1; } public OnFilterScriptExit() { return 1; } #else main() { } #endif public OnGameModeInit() { UsePlayerPedAnims(); } public OnPlayerCommandText(playerid,cmdtext[]) { if( !strcmp(cmdtext,"/box",true )) { SetPlayerPos(playerid, 2058.125000, 2434.458008, 166.983597); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,0,0); SetPlayerArmour(playerid,0); SetPlayerHealth(playerid,100); return 1; } else if (strcmp(cmdtext, "/exit", true)==0) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,2466.930664, -1660.438720, 13.277129); return 1; } return 0; }