Script Request Thread #5
#81

guys please help i need this script for my system

iam using a house system and i want house cars

idk how to do it

here is the FS of the house system
PasteBin

can any one make me a new script with
/buycar
/lock
/unlock
and/sellcar
if u can please please please script it for me

and please if ur willing to do it
do not use STRTOK
cuz i have it on another script so probably i will have error
like: strtok already defined

please dont tell me how to fix the exising one it dont have /lock or /buycar
thank you and please help me
Reply
#82

Well really a basic rape command. Like a 1 in 10 chance or something you will get an STD or something. The effects should be: Loosing health slowly and a Flashing red screen every so often.

Also a cure command which i can add for my medic faction Thanks
Reply
#83

/heal command please but not for who write it like:

/heal [playerid]

like heal some one else please

thank you
Reply
#84

Quote:
Originally Posted by Kyro
View Post
/heal command please but not for who write it like:

/heal [playerid]

like heal some one else please

thank you
pawn Code:
COMMAND:heal(playerid, params[])
{
    new pID, health;
    if(!sscanf(params, "ui", pID, health))
    {
        SetPlayerHealth(pID, health);
        SendClientMessage(playerid, YourCOLOR, "You have successfully set players health!");
    }
    else return SendClientMessage(playerid, YourCOLOR, "Usage: /heal [PlayerID][Amount]");
    return 1;
}
Reply
#85

Quote:
Originally Posted by xRyder
View Post
pawn Code:
COMMAND:heal(playerid, params[])
{
    new pID, health;
    if(!sscanf(params, "ui", pID, health))
    {
        SetPlayerHealth(pID, health);
        SendClientMessage(playerid, YourCOLOR, "You have successfully set players health!");
    }
    else return SendClientMessage(playerid, YourCOLOR, "Usage: /heal [PlayerID][Amount]");
    return 1;
}
Since when is health an integer? It should be:
pawn Code:
if(!sscanf(params, "uf", pID, health))
because it's a float.
Also
pawn Code:
new Float:health;
instead
Reply
#86

Nope, not really, it doesn't matter with SetPlayerHealth, so it's not wrong.
Reply
#87

Quote:
Originally Posted by xRyder
View Post
pawn Code:
COMMAND:heal(playerid, params[])
{
    new pID, health;
    if(!sscanf(params, "ui", pID, health))
    {
        SetPlayerHealth(pID, health);
        SendClientMessage(playerid, YourCOLOR, "You have successfully set players health!");
    }
    else return SendClientMessage(playerid, YourCOLOR, "Usage: /heal [PlayerID][Amount]");
    return 1;
}
thanks but not working


Quote:
Originally Posted by Mean
View Post
Since when is health an integer? It should be:
pawn Code:
if(!sscanf(params, "uf", pID, health))
because it's a float.
Also
pawn Code:
new Float:health;
instead
thanks but not working too

maybe i did something wrong
Reply
#88

i know how to do /heal command for my self but not /heal [playerid]

i really wanna know how to do commands that affects other players

like:
/cuff [playerid]

/heal[playerid]

etc..

help is reall really appreciated
Reply
#89

Khm, sorry but we gave you a fully working code.
Maybe you just need to convert your commands to ZCMD and sscanf.
Reply
#90

cp= checkpoint , how to make a cp for all players when a restart th players spawn and after 1 minute will start a cp and after 1 minute the cp will be ended player will see in textdraw "CP 1/5" and after 2 minutes will start a next cp and after 2 minute cp will be end and players will see 2/5 and when be a 5/5 players will be frozed and all will see "Thanx for playing Zombie Apoclypse and when player enter cp he will get +1 hp in 1 sec only ih he will be in look like this :
[ame]http://www.youtube.com/watch?v=8AmTI4ukLa0&feature=related[/ame]
Reply
#91

How to make a car flip command as my cars keep flipping and blowing up. Thanks
Reply
#92

Quote:
Originally Posted by cloudysky
View Post
How to make a car flip command as my cars keep flipping and blowing up. Thanks
pawn Code:
COMMAND:flip(playerid, params[])
{
    #pragma unused params
    playerid = GetPlayerVehicleID(playerid);
    if(playerid != INVALID_VEHICLE_ID) {
        new
            Float: A;
        GetVehicleZAngle(playerid, A);
        SetVehicleZAngle(playerid, A);
    }    
    return 1;
}
Quote:
Originally Posted by kasis223
View Post
Can somebody make me a command which tele player at you using

Code:
COMMAND:something(playerid, params[])
{
  // some stuff here
  return 1;
}
pawn Code:
COMMAND:tele(playerid, params[])
{
    #pragma unused params
    SetPlayerPos(playerid, 0.0, 0.0, 0.0); // just change the coords
    SetPlayerInterior(playerid, 0); // only needed if you tele in an interior
    return 1;
}
Reply
#93

Thanks, and also a big asking but making random fires spawn for the fire dep? At co-ords where admins set?
Reply
#94

I met like typical admin command /gethere [id]. I get other player at my position.
Reply
#95

Quote:
Originally Posted by kasis223
View Post
I met like typical admin command /gethere [id]. I get other player at my position.
pawn Code:
COMMAND:gethere(playerid, params[])
{
    new AdminName[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME],ToPlayer;
    new Float:X,Float:Y,Float:Z;
    new string[128];
    new interior;
    if(IsPlayerAdmin(playerid))
    {
        if(!sscanf(params, "u",ToPlayer))
        {
            if(IsPlayerConnected(ToPlayer))
            {
                GetPlayerName(playerid, AdminName, sizeof(AdminName));
                GetPlayerName(ToPlayer, PlayerName,sizeof(PlayerName));
                GetPlayerPos(playerid, X,Y,Z);
                SetPlayerPos(ToPlayer, X,Y+1,Z);
                interior = GetPlayerInterior(playerid);
                SetPlayerInterior(ToPlayer, interior);
                format(string, sizeof(string),"You have been teleported by Admin %s",AdminName);
                SendClientMessage(ToPlayer, COLOR, string);
                format(string,sizeof(string), "You have soccessfully teleported %s to you",PlayerName);
                SendClientMessage(playerid, COLOR, string);
            }
            else return SendClientMessage(playerid, COLOR, "This player is not online.");
        }
        else return SendClientMessage(playerid, COLOR_WHITE, "Usage: /gethere [PlayerID/PartOfName]");
    }
    return 1;
}
Reply
#96

I have created some Gang Zones
Code:
GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587);
But I don't see that gangzone in my server on radar(map).
I don't understand GangZoneShowForAll
Reply
#97

Quote:
Originally Posted by MrND
View Post
I have created some Gang Zones
Code:
GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587);
But I don't see that gangzone in my server on radar(map).
I don't understand GangZoneShowForAll
pawn Code:
new gangzone;

public OnGameModeInit()
{
    gangzone = GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, gangzone, 0xFFFF0096);// This is only for player.
    GangZoneShowForAll(gangzone,0xFFFF0096);// This is for all.
    return 1;
}
Source: SA-MP Wiki
Reply
#98

Quote:
Originally Posted by xRyder
View Post
pawn Code:
new gangzone;

public OnGameModeInit()
{
    gangzone = GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, gangzone, 0xFFFF0096);// This is only for player.
    GangZoneShowForAll(gangzone,0xFFFF0096);// This is for all.
    return 1;
}
Source: SA-MP Wiki
Thank you for this.
Reply
#99

<bump>
Hey guys I have a simple request. I need a script that allows me to place an emergency flare at my coordinates and I need that flare to burn.

The flare ID is 18728. It's a particle object for those who don't know. I need a command like "/placeflare" to put it where I am standing and let it burn for a minute, or the ammount of time I decide...the second would be nice. I would type "/placeflare 3" for 3 minutes.
Reply

Quote:
Originally Posted by HeLiOn_PrImE
View Post
<bump>
Hey guys I have a simple request. I need a script that allows me to place an emergency flare at my coordinates and I need that flare to burn.

The flare ID is 18728. It's a particle object for those who don't know. I need a command like "/placeflare" to put it where I am standing and let it burn for a minute, or the ammount of time I decide...the second would be nice. I would type "/placeflare 3" for 3 minutes.
pawn Code:
forward flaretime( );
new flareobj;

pawn Code:
CMD:placeflare( playerid, params[ ] ) // ZCMD
{
    if( !strlen( params ) )
        return SendClientMessage( playerid, 0xAAAAAA, "USE: /placeflare <time( IN MINUTES )>" );
    new Float:x, Float:y, Float:z;
    GetPlayerPos( playerid, x, y, z );
    flareobj = CreateObject( 18728, x, y, z, 0.0, 0.0, 0.0 );
    SetTimer( "flaretime", params * 60000, 0 );
    new string[ 128 ];
    format( string, sizeof string, "You have put a flare for %d minutes", params );
    return SendClientMessage( playerid, 0xAAAAAA, string );
}
pawn Code:
public flaretime( )
{
    return DestroyObject( flareobj );
}
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)