|
Originally Posted by Sal_Kings
I need a license system, please. PM it to me.
When someone enters a vehicle and they don't have a license it will say "You need a drivers license!". The license instructors will type /givelicense ID. I will type /makeinstructor id to turn someone into a instructor and they can give licenses. If you can then make the instructors have the ability to /takelicense ID. |
RIVE CAREFULY... etc etc... make like 10 checkpoints 11 should be the last one and then they earn Driving License... and give /takelicense (ID) to cops - cops should have ranks so only like 5 or 10 ranks and rank 5+ should use /takelicense (id) - so the newbies should not abuse this command for nothing ... - this was just my idea
anyway in search are nice licenses systems
if(strcmp(cmd, "/dmv", true) == 0)
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.5, playerid,-2032.9529,-115.7136,1035.1719))
{
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "Izmantojums: /dmv [license]");
SendClientMessage(playerid, COLOR_GREEN, "|_____ Licenses _____|");
SendClientMessage(playerid, COLOR_WHITE, "tips - cena - license");
SendClientMessage(playerid, COLOR_WHITE, "Driving license - 1000$ - driving");
SendClientMessage(playerid, COLOR_GREEN, "|____________________|");
return 1;
}
if(strcmp(x_nr,"driving",true) == 0)
{
....
}
}
return 1;
}
//PlayerInfo[playerid][pCarLic] = 1; <-- give license
//PlayerInfo[i][pLeader] == 11 || PlayerInfo[i][pMember] == 11 <-- instructor leaders, members
|
Originally Posted by Ritchie999
-Edit- -Edit-
I am looking for a register and login command for rp server that saves the info to an .ini file that will save vehicle if purchased, drugs, houses etc.. |
|
Originally Posted by DeltaAirlines12
Quote:
|
|
Originally Posted by anazhd
okay. thnx. Another one, how to spawn vehicle with we automatic ride it?
|
|
Originally Posted by Ritchie999
Quote:
what does that mean? |
PutPlayerInVehicle(playerid,0);
|
Originally Posted by Luka™
When you spawn vehicle then use
pawn Код:
|
//try
dcmd_vx(playerid, params[])
{
new
idx,
iString[ 128 ];
if ( gPlayerStatus[ playerid ] != 0 )
{
format ( iString, 128, "[ERROR]: You are already using \"%s\".", aSelNames[ gPlayerStatus[ playerid ] - 1 ] );
SendClientMessage ( playerid, COLOR_RED, iString );
return true;
}
if ( params[ 0 ] == '\0' ) // Same effect as a !strlen check.
return SendClientMessage( playerid, COLOR_RED, "[USAGE]: /v MODELID/NAME or /vehicle MODELID/NAME" );
//***************
// Fix by Mike! *
//***************
idx = GetVehicleModelIDFromName( params );
if( idx == -1 )
{
idx = strval(iString);
if ( idx < MIN_VEHI_ID || idx > MAX_VEHI_ID )
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Invalid MODELID/NAME");
}
new
Float:x,
Float:y,
Float:z,
Float:a;
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, VEHI_DIS);
GetPlayerFacingAngle(playerid, a);
curPlayerVehM[playerid] = idx;
curPlayerVehI[playerid] = CreateVehicle(idx, x, y, z + 2.0, a + 90.0, -1, -1, 5000);
LinkVehicleToInterior(curPlayerVehI[playerid], GetPlayerInterior(playerid));
curServerVehP[curPlayerVehI[playerid]][spawn] = true;
curServerVehP[curPlayerVehI[playerid]][vmodel] = idx;
curServerVehP[curPlayerVehI[playerid]][vInt] = GetPlayerInterior(playerid);
format(iString, 128, "[SUCCESS]: Spawned a \"%s\" (MODELID: %d, VEHICLEID: %d)", aVehicleNames[idx - MIN_VEHI_ID], idx, curPlayerVehI[playerid]);
SendClientMessage(playerid, COLOR_GREEN, iString);
return true;
}
//try
Uum i would like a /color <0-255> <0-255> <0-255> command So if you type /color 1 1 1 then you have white color. Thank you
|
Originally Posted by anazhd
Quote:
Код:
//try
dcmd_vx(playerid, params[])
{
new
idx,
iString[ 128 ];
if ( gPlayerStatus[ playerid ] != 0 )
{
format ( iString, 128, "[ERROR]: You are already using \"%s\".", aSelNames[ gPlayerStatus[ playerid ] - 1 ] );
SendClientMessage ( playerid, COLOR_RED, iString );
return true;
}
if ( params[ 0 ] == '\0' ) // Same effect as a !strlen check.
return SendClientMessage( playerid, COLOR_RED, "[USAGE]: /v MODELID/NAME or /vehicle MODELID/NAME" );
//***************
// Fix by Mike! *
//***************
idx = GetVehicleModelIDFromName( params );
if( idx == -1 )
{
idx = strval(iString);
if ( idx < MIN_VEHI_ID || idx > MAX_VEHI_ID )
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Invalid MODELID/NAME");
}
new
Float:x,
Float:y,
Float:z,
Float:a;
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, VEHI_DIS);
GetPlayerFacingAngle(playerid, a);
curPlayerVehM[playerid] = idx;
curPlayerVehI[playerid] = CreateVehicle(idx, x, y, z + 2.0, a + 90.0, -1, -1, 5000);
LinkVehicleToInterior(curPlayerVehI[playerid], GetPlayerInterior(playerid));
curServerVehP[curPlayerVehI[playerid]][spawn] = true;
curServerVehP[curPlayerVehI[playerid]][vmodel] = idx;
curServerVehP[curPlayerVehI[playerid]][vInt] = GetPlayerInterior(playerid);
format(iString, 128, "[SUCCESS]: Spawned a \"%s\" (MODELID: %d, VEHICLEID: %d)", aVehicleNames[idx - MIN_VEHI_ID], idx, curPlayerVehI[playerid]);
SendClientMessage(playerid, COLOR_GREEN, iString);
return true;
}
//try
|
dcmd_vx(playerid, params[])
{
new
idx,
iString[ 128 ];
if ( gPlayerStatus[ playerid ] != 0 )
{
format ( iString, 128, "[ERROR]: You are already using \"%s\".", aSelNames[ gPlayerStatus[ playerid ] - 1 ] );
SendClientMessage ( playerid, COLOR_RED, iString );
return true;
}
if ( params[ 0 ] == '\0' ) // Same effect as a !strlen check.
return SendClientMessage( playerid, COLOR_RED, "[USAGE]: /v MODELID/NAME or /vehicle MODELID/NAME" );
//***************
// Fix by Mike! *
//***************
idx = GetVehicleModelIDFromName( params );
if( idx == -1 )
{
idx = strval(iString);
if ( idx < MIN_VEHI_ID || idx > MAX_VEHI_ID )
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Invalid MODELID/NAME");
}
new
Float:x,
Float:y,
Float:z,
Float:a;
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, VEHI_DIS);
GetPlayerFacingAngle(playerid, a);
curPlayerVehM[playerid] = idx;
curPlayerVehI[playerid] = CreateVehicle(idx, x, y, z + 2.0, a + 90.0, -1, -1, 5000);
PutPlayerInVehicle(playerid,0); // LINE ADDED BY ME! TELL ME IF IT IS WORKING
LinkVehicleToInterior(curPlayerVehI[playerid], GetPlayerInterior(playerid));
curServerVehP[curPlayerVehI[playerid]][spawn] = true;
curServerVehP[curPlayerVehI[playerid]][vmodel] = idx;
curServerVehP[curPlayerVehI[playerid]][vInt] = GetPlayerInterior(playerid);
format(iString, 128, "[SUCCESS]: Spawned a \"%s\" (MODELID: %d, VEHICLEID: %d)", aVehicleNames[idx - MIN_VEHI_ID], idx, curPlayerVehI[playerid]);
SendClientMessage(playerid, COLOR_GREEN, iString);
return true;
}