27.11.2013, 11:15
Guys i am making my first gamemode its zombies but i have little problem
i want that server appear cp after every 3 minutes
There are total 8 checkpoints
anything wrong that's why server not showing cp
Suggest me only.
i want that server appear cp after every 3 minutes
There are total 8 checkpoints
anything wrong that's why server not showing cp

Suggest me only.
Код:
forward kp1(playerid); new cp1; public OnPlayerEnterCheckpoint(playerid) { if(IsPlayerInDynamicCP(playerid, cp1)) { SetTimerEx("kp1", 20000, false,"i",playerid); } return 1; } public kp1(playerid) { GiveScore(playerid, 3); DestroyDynamicCP(cp1); } public OnGameModeInit() { foreach(Player, playerid) { SetTimerEx("av", 180000, true, "i", playerid); } SetWeather(9); SetWorldTime(0); return 1; } public av(playerid) { U[playerid][w]++; if(U[playerid][w] == 1) { U[playerid][w]++; SendClientMessageToAll(-1, "Humans go to the checkpoint"); if(pInfo[playerid][pHuman]) { cp1 = CreateDynamicCP(1090, 1074, 11, 8, -1, -1, -1, 100000); } } return 1; }