[pomoc]CP

Započeo ‹Fox›, Oktobar 07, 2010, 20:45:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

evo ovako sada radim CP i stavio sam da kada dode na njega da ga zamrzne na 7sec i dodem na prvi i sve je u redu kada idem na drugi onda ga zamrzne na 3sec na nekima ga uopce ne zamrzne , a na svakom cp-u sam stavio da ga freeza eto ovaj callback od timera
forward ciscenje(playerid);
public ciscenje(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}



/////////////smetlar///////////////
if(CP[playerid] == 900) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu"); CP[playerid] = 901; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1345.4241,-921.5433,35.2521,8.0); }}
if(CP[playerid] == 901) {if(IsPlayerInCheckpoint(playerid)){TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu"); CP[playerid] = 902;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1188.3571,-930.9197,43.0326,8.0); }}
if(CP[playerid] == 902) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 903;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1155.0416,-1055.7617,30.7367,8.0);}}
if(CP[playerid] == 903) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 904;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1090.2655,-1106.1572,24.6643, 8.0);}}
if(CP[playerid] == 904) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 905;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,970.0248,-1084.6234,24.7519, 8.0);}}
if(CP[playerid] == 905) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 906;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,969.0173,-1413.6318,13.2719, 8.0);}}
if(CP[playerid] == 906) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 907;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1188.5819,-1312.9960,13.5642, 8.0);}}
if(CP[playerid] == 907) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 908;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1268.4812,-1413.9312,13.3563, 8.0);}}
if(CP[playerid] == 908) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 909;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1314.6599,-1498.4933,13.5469, 8.0);}}
if(CP[playerid] == 909) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 910;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1290.2179,-1602.8661,13.5391 , 8.0);}}
if(CP[playerid] == 910) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 911;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1362.3160,-1739.6272,13.5469, 8.0);}}
if(CP[playerid] == 911) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 912;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1465.2847,-1739.2405,13.5469, 8.0);}}
if(CP[playerid] == 912) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 913;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1536.6532,-1689.2252,13.5469, 8.0);}}
if(CP[playerid] == 913) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 914;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1561.9475,-1784.8148,13.5469, 8.0);}}
if(CP[playerid] == 914) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 915;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1661.6321,-1878.9742,13.5400, 8.0);}}
if(CP[playerid] == 915) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 916;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1829.3812,-1852.0647,13.5781, 8.0);}}
if(CP[playerid] == 916) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 917;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1829.7454,-1698.1429,13.5469, 8.0);}}
if(CP[playerid] == 917) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 918;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1898.0065,-1619.1714,13.5469, 8.0);}}
if(CP[playerid] == 918) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 919;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2009.1431,-1721.0592,13.5469, 8.0);}}
if(CP[playerid] == 919) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 920;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2073.9473,-1646.1624,13.5469, 8.0);}}
if(CP[playerid] == 920) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 921;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2136.8000,-1460.4392,23.9702, 8.0);}}
if(CP[playerid] == 921) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 922;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2136.7034,-1417.6559,23.9854, 8.0);}}
if(CP[playerid] == 922) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 923;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2079.6785,-1285.3943,23.9725, 8.0);}}
if(CP[playerid] == 923) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 924;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1824.0402,-1174.2802,23.8281, 8.0);}}
if(CP[playerid] == 924) {if(IsPlayerInCheckpoint(playerid)) {TogglePlayerControllable(playerid, 0); SetTimer("ciscenje", 7000, true); SendClientMessage(playerid, COLOR_GRAD1, "pricekajte dok ne pocistite cestu");  CP[playerid] = 925;  DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1822.4576,-1090.9277,24.0781, 8.0);}}
if(CP[playerid] == 925) {if(IsPlayerInCheckpoint(playerid)) {CP[playerid] = 0; SendClientMessage(playerid, COLOR_BLUE, "Zavrsili ste s ciscenjem i dobivate 4000$"); GivePlayerMoney(playerid, 4000); DisablePlayerCheckpoint(playerid); }}