Need help!!
#1

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!?!?
Reply
#2

So its a stunt server,
The problem would be that only either rcon admins or normal admins can use the gotohouse command....

Ps. How did you get garhouse to work? it would never work for me....
Reply
#3

i typed garhouse in cfg file then reopen samp server .exe and yeah it works only for rcon why!?
Reply
#4

Well - Can you show me the part in .pwn of Garhouse where it display the /gotohouse CMD - it's easy to make it for anyone
Reply
#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
#6

mhmm thanks alpha and breto ok hold on gunna copy it xD
Reply
#7

Quote:
Originally Posted by Breto
Посмотреть сообщение
Well - Can you show me the part in .pwn of Garhouse where it display the /gotohouse CMD - it's easy to make it for anyone
here is the link where i downloaded garhouse http://forum.sa-mp.com/showthread.ph...light=garhouse
Reply
#8

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
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;
}
Omg thank u it means alot to me but can u put it for me here's the gamemode
http://www.mediafire.com/?ro4lgnyxu229i7s>>.PWN
http://www.mediafire.com/?79vw6hxxsbiiw87>>.AMX
thnx
Reply
#9

so now what breto i showed u the link where i downloaded the garhouse from !
o.O
Reply
#10

you will find in the Garhouse.pwn a think like this :

pawn Код:
CMD:gotohouse(playerid, params[])
{
    new h;
    if(!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
    if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
    SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
    ShowInfoBox(playerid, I_TELEPORT_MSG, h);
    return 1;
}


Replace it with this :


pawn Код:
CMD:gotohouse(playerid, params[])
{
    new h;
    if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
    if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
    SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
    ShowInfoBox(playerid, I_TELEPORT_MSG, h);
    return 1;
}

Use CTRL + F and search for : CMD:gotohouse , hope that help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)