06.06.2016, 06:41
Hi everyone, I made a race system. It appears to me only checkpoint. Do not appear to other players. What's the problem ?
I'm sorry for my bad English.
I'm sorry for my bad English.
Код:
enum yarisBilgileri { count, yarisIsmi[32], yarisAraci, Float:CPx[MAX_CP], Float:CPy[MAX_CP], Float:CPz[MAX_CP], Float:PosX[MAX_CP], Float:PosY[MAX_CP], Float:PosZ[MAX_CP], Float:PosA[MAX_CP], SpawnSayisi, CPSayisi, yarisParasi, yarisSkoru, } new yarisIslem[MAX_YARIS][yarisBilgileri]; new CPArttir[MAX_PLAYERS]; new CPArttirx[MAX_PLAYERS]; forward OyunculariBekle(); public OyunculariBekle() { foreach(new i: Player) { new str[128]; if(Sure == 0) { KillTimer(YarisTimeri); Sure = 30+1; if(GetPVarInt(i,"Yaristayim") == 1) { //The problem here yarisIslem[yarisIDcek][count] = SetPlayerRaceCheckpoint(i,0,yarisIslem[yarisIDcek][CPx][CPArttir[i]],yarisIslem[yarisIDcek][CPy][CPArttir[i]],yarisIslem[yarisIDcek][CPz][CPArttir[i]],yarisIslem[yarisIDcek][CPx][CPArttirx[i]],yarisIslem[yarisIDcek][CPy][CPArttirx[i]],yarisIslem[yarisIDcek][CPz][CPArttirx[i]],5.0); // TogglePlayerControllable(i,1); format(str,sizeof(str),"~y~~h~Basla !"); GameTextForPlayer(i,str, 1100, 5); } return 1; } Sure--; format(str,sizeof(str),"~y~~h~Yarisin Baslamasina: ~w~~h~%d",Sure); if(GetPVarInt(i,"Yaristayim") == 1) { GameTextForPlayer(i,str, 1100, 5); } } return 1; }