Ok first,
408 pickup and its function is to give 1000$
Paste this in
public OnPickedUp( pickupid, playerid )
{
[pawn]if(pickupid == 161) {
new szMsg[128];
format( szMsg, sizeof( szMsg ), "%s has Robbed Biker's Bar (Downtown)", gPlayers[ playerid ] );
SendClientMessageToAll(COLOR_YELLOW, szMsg );
GameTextForPlayer(playerid, "You Have Robbed 1000$");
IncPlayerHandCash( playerid, 1000 );
}
[/pawn]
and In
public OnGameModeInit()
{
[pawn]AddStaticPickup(161,408,-594.69866, 643.36383, 11.67646);[/pawn]
//...//
/c get
paste this in /c commands
[pawn]
else if ( strcmp( cmd, "get", true ) == 0 )
{
tmp = strtok( cmdtext, idx ); new plr = FindPlayerIDFromString( tmp );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c get [Nick/ID]" );
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
else if ( !IsPlayerSpawned( plr ) ) SendClientMessagef( playerid, COLOR_GREEN, "Error: %s does not spawned!", gPlayers[ plr ] );
else
{
new Float:x, Float:y, Float:z, szMsg[ 128 ];
GetPlayerPos( playerid, x, y, z );
SetPlayerPos( plr, x, y + 1.0, z, 0, 0 );
format( szMsg, sizeof( szMsg ), "Teleporting:[ %s ] to:[ %s ]", gPlayers[ plr ], gPlayers[ playerid ] );
SendClientMessageToAll( COLOR_GREEN, szMsg );
}
return 1;
}[/pawn]
//...//
[pawn]else if ( strcmp( cmd, "stuntmode", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c stuntmode [on/off]" );
else
{
if ( strcmp( tmp, "on", true ) == 0 )
{
EnableStuntBike( 255, 1 );
SendClientMessage( playerid, COLOR_GREEN, "Stuntmode Enabled." );
}
else if ( strcmp( tmp, "off", true ) == 0 )
{
EnableStuntBike( 255,0 );
SendClientMessage( playerid, COLOR_GREEN, "Stuntmode Disabled." );
}
else SendClientMessage( playerid, COLOR_GREEN, "Syntax Error! USAGE: /c stuntmode [on/off]" );
}
return 1;
}
[/pawn]
wait i will soon tell about remaining cmds