18.11.2013, 13:49
1- Fiz uma base pra vocк, nгo testei nem compilei
2- Coloque as coordenadas que vocк quer
3-
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/MapIcons
pawn Код:
#include < A_SAMP >
#include < ZCMD >
#define MAX_CASAS (50)
enum iNFO {
haveHouse
} ;
new playerInfo [ MAX_PLAYERS ] [ iNFO ] ;
COMMAND:comprarcasa ( playerid ) {
if ( playerInfo [ playerid ] [ haveHouse ] != 100 )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Vocк jб tem uma casa" ) ;
for ( new x = 0; x < MAX_CASAS; x++ ) {
playerInfo [ playerid ] [ haveHouse ] = x;
}
SendClientMessage ( playerid, -1, "[ AVISO ]: Vocк comprou uma casa" ) ;
return true ;
}
COMMAND:vendercasa ( playerid ) {
if ( playerInfo [ playerid ] [ haveHouse ] == 100 )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Vocк nгo tem uma casa" ) ;
playerInfo [ playerid ] [ haveHouse ] = 100 ;
SendClientMessage ( playerid, -1, "[ AVISO ]: Vocк vendeu sua casa" ) ;
}
pawn Код:
public OnPlayerSpawn ( playerid ) {
if ( playerInfo [ playerid ] [ haveHouse ] != 100 ) {
SetPlayerPos ( playerid, CordX, CorY, CordZ ) ;
}
return true ;
}
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/MapIcons