HELP PLEASE ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP PLEASE ! (
/showthread.php?tid=320083)
HELP PLEASE ! -
ZIKADIMOV - 21.02.2012
Does anyone know how to make a Script for the TAXI cars if you are not a TAXI driver you can not drive the TAXI car.I need help with this please im beginer.
Re: HELP PLEASE ! -
Konstantinos - 21.02.2012
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER ) // if entering a vehicle as driver continue..
{
switch( GetPlayerSkin( playerid ) ) // Get the Skin
{
case 7, 142: // Skin 7 and 142 are Taxi Drivers || If skin is 7 or 142 he is taxi driver
{
SendClientMessage( playerid, -1, "Welcome Taxi Driver!" ); // He is
return 1;
}
default: // else
{
SendClientMessage( playerid, -1, "You are Taxi Driver!" ); // He is not
RemovePlayerFromVehicle( playerid ); // Remove him from the vehicle
return 1;
}
}
}
return 1;
}
Re: HELP PLEASE ! -
ZIKADIMOV - 21.02.2012
im using raven's roleplay 0.3d and this script doesn't work :/ do you know how to do it?
Re: HELP PLEASE ! -
Konstantinos - 21.02.2012
Actually the code works. I tested and nothing is wrong.
Re: HELP PLEASE ! -
Max_Coldheart - 21.02.2012
Quote:
Originally Posted by ZIKADIMOV
im using raven's roleplay 0.3d and this script doesn't work :/ do you know how to do it?
|
You shouldn't start RP server when you don't know how to script. Also, Raven's Roleplay stinks heavily + you should try out yourself instead of starting begging here because you're "beginar"
Re: HELP PLEASE ! -
ZIKADIMOV - 21.02.2012
yes but anyone can learn with some help
Re: HELP PLEASE ! -
milanosie - 21.02.2012
https://sampforum.blast.hk/showthread.php?tid=283306