Ha járműves a felvételed akkor:
-
#include <a_samp>
-
new npcveh;
-
public OnFilterScriptInit ( )
-
{
-
ConnectNPC("Gyuri_taxi", "load");
-
npcveh = CreateVehicle ( 400, 0.0, 0.0, 5.0, 0.0, 3, 3, -1 );
-
return 1;
-
}
-
public OnPlayerSpawn ( playerid )
-
{
-
if ( IsPlayerNPC ( playerid ) )
-
{
-
new npcname [ MAX_PLAYER_NAME ];
-
GetPlayerName ( playerid, npcname, sizeof ( npcname ) );
-
if ( !strcmp ( npcname, "Gyuri_taxi", true ) )
-
{
-
PutPlayerInVehicle ( playerid, npcveh, 0 );
-
}
-
return 1;
-
}
-
return 1;