Hello Guys i Want Help From Kidnap!
#1

Hello Guys i Want Help From Kidnap!
i Want Get Player and me in Car Or Bikes Automatic
this i want please see here i want add it here
PHP код:
dcmd_kidnap(playerid,params[])
{
    new 
string[128];
    new 
ID;
    if(
sscanf(params"u"ID))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /kidnap (Player Name/ID)");
        return 
1;
    }
    if(
IsSpawned[playerid] != 1)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
        return 
1;
    }
    if(
IsFrozen[playerid] == 1)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
        return 
1;
    } 
please help from this i want get player and me in car or bikes
Reply
#2

This is the base structure; work on it and make it better.
pawn Код:
dcmd_kidnap(playerid,params[])
{
    new string[128];
    new ID, seat;
    if(sscanf(params, "ui", ID, seat)) return SendClientMessage(playerid,COLOR_ERROR,"USAGE: /kidnap (Player Name/ID) (Seat)");
    if(IsSpawned[playerid] != 1) return SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
    if(IsFrozen[playerid] == 1) return SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
    if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_ERROR,"ERROR: Invalid player specified!");
    new carid = GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(targetid,carid,seat);
    format(string,sizeof(string),"You have kidnapped %s!", GetName(targetid));
    SCM(playerid, COLOR_HERE, string);
    format(string,sizeof(string),"You have been kidnapped by %s!", GetName(playerid));
    SCM(playerid, COLOR_HERE, string)
    return 1;
}
Reply
#3

lol its have mush system from kidnap again and its error i want only
Quote:

if(To Get Me And Player Here Know Guys!!!!!![playerid] != 1)

and
Quote:

SendClientMessage(playerid,COLOR_ERROR,

i want this to work my mod! to get me and player i kidnap himm to car or bikes any things
Reply
#4

How simple do you want it?

pawn Код:
dcmd_kidnap(playerid,params[])
{
    new giveplayerid;
    if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_ERROR, "/kidnap [playerid/name]");
    if(IsSpawned[playerid] != 1) return SendClientMessage(playerid, COLOR_ERROR, "You must be alive or spawned to use this command.");
    if(IsFrozen[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You have been frozen by a server administrator. You cannot use this command.");
    new car = GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(giveplayerid, car, 1);
    return 1;
}
Reply
#5

Iwhat do youn want exatcly
Reply
#6

Guys its This LAst i Deleit it Get Error And Not Get Player and Me in Car
Quote:

if(LastVehicle[playerid] == 0)
{
SendClientMessage(playerid,COLOR_ERROR,"You must enter a vehicle before attempting to kidnap a player.");
return 1;
}

i want change it this only to player i kidnap himm and me goto car or bikes orrrr...... Automatic
know Guys! Help!
Reply
#7

Help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)