Originally Posted by Retardedwolf
Function for you.
pawn Код:
createBot( bID, bName[ MAX_PLAYER_NAME ], Float:X, Float:Y, Float:Z, Float:Rot ) { if ( bID == -1 ) bID = FindLastFreeSlot( );
CreateNPCPlayer( bID, bName ); SetSpawnInfo( bID, 0, 0, X, Y, Z, Rot, 0, 0, 0, 0, 0, 0 ); SpawnNPC( bID ); //SetPlayerAttachedObject( bID, 0, 18846, 1, 0.000000, 0.158638, 0.000000, 0.000000, 90.000000, 180.000000, 0.405710, 0.548724, 0.258224 ); return 1; }
Examples
pawn Код:
public OnGameModeInit( ) { AddPlayerClass( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); createBot( -1, "Haydz", 0, 0, 0, 0 ); createBot( -1, "is", 0, 0, 0, 0 ); createBot( -1, "gay", 0, 0, 0, 0 ); return 1; }
|