Hi matheus
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]