Problems stunt
#1

Problem: We have created a system of 0 and do not know what I do to start that stunt at all Players him now how it works gives every player checkpoint different and the idea is that I'd like to make it such a flag the map to show them at all without getting them playeri be that checkpoint, and do all the stunt the player with the same checkpoints at all.Cod sursa:
OnPlayerEnterCheckpoint
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti intr-un NRG-500! !");
{
if(stunton[playerid] == 1)
{
new playername[25];
GetPlayerName(playerid, playername, sizeof(playername));
new randmoney = 3500 + random(90000);
//DisablePlayerCheckpoint(playerid);
stunton[playerid] = 0;
RemovePlayerMapIcon(playerid, 1274);
DestroyPickup(pickup_event);
format(string,sizeof(string),"{CF165D}%s A castigat STUNT-ul, acesta a castigat %d$.", playername, randmoney);
SendClientMessageToAll( -1, string);
GivePlayerCash(playerid, randmoney);
Update(playerid, pCashx);
SendClientMessage(playerid, -1, "Un nou stunt incepe la 30 minute.");
SendClientMessage(playerid, -1, "STUNT-ul este in perioada de probe Nu este finalizat.");
SendClientMessage(playerid, -1, "Ai gasit-o pe Elodia!");
}
}

Public
for(new i = 0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i))
{
new randoms = random(sizeof(stuntnrg));
{
SetPlayerCheckpoint(i, stuntnrg[randoms][0],stuntnrg[randoms][1], stuntnrg[randoms][2], 1.0);//
SetPlayerMapIcon(playerid, 53, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2],53, MAPICON_GLOBAL_CHECKPOINT);//
pickup_event = CreatePickup(1274, 2, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], GetPlayerVirtualWorld(playerid));//
SendClientMessageToAll(-1, "A new stunting event has just started. It has been marked on your Map with a Black&White Race Flag Get there first and you'II win.");
stunton[playerid] = 1;
}
}
}



Help me please?
Reply
#2

I explain to me anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)