Fs
#include <a_samp>
new npcveh;
public OnFilterScriptInit ( )
{
ConnectNPC(\"rendor\", \"nc\");
npcveh = CreateVehicle (598, 2215.8579,2450.2607, 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, \"rendor\", true ) )
{
PutPlayerInVehicle ( playerid, npcveh, 0 );
SetPlayerSkin(playerid, 61); //ide írd ba a skin id-t amit akarsz
}
return 1;
}
return 1;
}
Npcmodes-be a fájl neve nc?
Rec fájl neve pedig asd?
>\" post=\"181244\" timestamp=\"1317409843\"]
Fs
#include <a_samp>
new npcveh;
public OnFilterScriptInit ( )
{
ConnectNPC(\"rendor\", \"nc\");
npcveh = CreateVehicle (598, 2215.8579,2450.2607, 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, \"rendor\", true ) )
{
PutPlayerInVehicle ( playerid, npcveh, 0 );
SetPlayerSkin(playerid, 61); //ide írd ba a skin id-t amit akarsz
}
return 1;
}
return 1;
}
Npcmodes-be a fájl neve nc?
Rec fájl neve pedig asd?
[/quote]
Igen így van pontosan.