[pawn]// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new gangzone; main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319); return 1; } public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, gangzone, 0xFFFF0096); return 1; } forward IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if (x > minx && x < maxx && y > miny && y < maxy) return 1; return 0; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext,"/war",true)) { if(IsPlayerInArea(playerid,1248.011, 2072.804, 1439.348, 0.0)) { GangZoneFlashForPlayer(playerid, gangzone, 0xFF000098); //SetTimerEx("TakeZone",1*60*1000,0,"ii",playerid,i);// } } return 1; } [/pawn] Testat si merge .