Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: SOMAAN on July 06, 2013, 09:39:44 am
-
Hello i need help with some cmds
i need /c spawnatprop on/off if it is on we spawn at our prop and it is only for player who have a prop
i need /c gotoveh from it we can goto our vehicle it is only for player who have vehicles
i need !propmoney from it we get money from our prop by time and time
i need /c stuntmode on/off if on we dont get off from bike
i need /c get it is for admin only and from it we can get any player
i need /c rob from it we can rob player money
i need !team
and plz tell me how to add icons on radar, how to get x y z cordinates
and i need a help in to add id 408 pickup and its function is to give 1000$
plz help me
-
no way to make it urself? stop asking people to write codes for u, u look dumb
-
man i am dumb so thats why i asked you people,plz help me
-
for get coordinates write /s and find in you vc folder the archive .txt i think is named vcmp- coords.txt
for command... learn pawn or sq!!!! for icons in the radar map... is bugged in pwn
sorry but not is possible make all command and give for any player.....
because not all people have time to lose whit noobs in scripting
sorry for my bad english
-
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