Need help!!
#5

Quote:
Originally Posted by beeso14
Посмотреть сообщение
hi i created a server and i have the garhouse filterscript .and i created houses but players cant use this command /gotohouse [id] .it doesnt work with them .thats my first problem the second one is how do i let players get 1 score per 1 minute ,and score by killing and also score by drift points .i already have a drift points script but the point be shown on screen when i drift but it doesnt go to score!! so please someone help!?!?
Perhaps you set it admin-only, I believe that is an option in GarHouse.

And for the score every minute:

pawn Код:
SetTimer("GiveAllScore", 60000, 1);//60000 is 1 minute, place this under OnGameModeInit.

forward GiveAllScore();//We need to forward it as it's a callback
public GiveAllScore()//Just place this somewhere [NOT in another callback]
{
   for(new i = 0; i < MAX_PLAYERS; i++)//Loop trough all players
   {
        SetPlayerScore(i, GetPlayerScore(i)+1);//Gets a player score and sets it +1
   }
    return 1;
}
+ For the score on death:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)//If your script already has this callback, then you can just copy the contents inside this
{
    SetPlayerScore(killerid, GetPlayerScore(killerid)+1);//Set the killerid's score +1
    SendClientMessage(killerid, -1, "You received 1 score for killing a player!");//Send them a message to inform them
    return 1;
}
Reply


Messages In This Thread
Need help!! - by beeso14 - 23.07.2011, 18:22
Re: Need help!! - by lukekroll - 23.07.2011, 18:24
Re: Need help!! - by beeso14 - 23.07.2011, 19:46
Re: Need help!! - by -CaRRoT - 23.07.2011, 20:08
Re: Need help!! - by alpha500delta - 24.07.2011, 08:25
Re: Need help!! - by beeso14 - 27.07.2011, 00:53
Re: Need help!! - by beeso14 - 27.07.2011, 01:36
Re: Need help!! - by beeso14 - 27.07.2011, 01:40
Re: Need help!! - by beeso14 - 30.07.2011, 05:14
Re: Need help!! - by -CaRRoT - 30.07.2011, 05:40

Forum Jump:


Users browsing this thread: 2 Guest(s)