Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: MatheuS on July 20, 2012, 04:54:54 am
-
[/i]need a code to suit the police station type / c police and make the clothes as the police have you guys help me?
-
Sure its easy :P :D. Just make your command either a ! or /c and thats just the message, the function your looking for is, SetPlayerSkin(playerid, skin id);
-
:o ;D
Thanks I'll try
-
Hi matheus :D i know you using gups and this is the command for you... you have 2 opcion
[pawn] else if(strcmp(cmd,"policia",true) == 0)
{
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Logueate en tu cuenta." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "Solo level 3 de policia!" );
else
{
GameTextForPlayerBottom(playerid,"~b~ Policia <");
SetPlayerWeapon(playerid,17,200);
SendClientMessage(playerid,RED,"Eres policia obtienes una colt");
SetPlayerPos( playerid, 398.95700, -468.72879, 11.25734,0,0);
SetPlayerArmour(playerid,100.0);
SetPlayerSkin(playerid,3);
}
return 1;
}[/pawn]
or you use
[pawn] else if(strcmp(cmd,"policia",true) == 0)
{
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Logueate en tu cuenta." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "Solo level 3 de policia!" );
else if ( strcmp( GetPlayerLocation( playerid ), "Police-Station-SE-Washington-Beach-Vice-City-Beach", true ) == 1 ) SendClientMessage( playerid, COLOR_GREEN, "Error: Debes estar al interior de la comisaria cerca de malibu!" );
else
{
GameTextForPlayerBottom(playerid,"~b~ Policia <");
SetPlayerWeapon(playerid,17,200);
SendClientMessage(playerid,RED,"Eres policia obtienes una colt");
SetPlayerArmour(playerid,100.0);
SetPlayerSkin(playerid,3);
}
return 1;
}[/pawn]