21.01.2012, 10:48
pawn Код:
// Also, about /exit command, you have to be in a range of 15 meters to send you the message, set your position and the interior.
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if( strcmp( "/exit", cmdtext, true, 5 ) == 0 ) {
if( PlayerToPoint( 15.0, playerid, 2454.717041, -1700.871582, 1013.515197 ) ) {
SendClientMessage( playerid, COLOR_FADE, "Vanzator: Scire /exit pentru a iesi!" );
SetPlayerPos( playerid, 2459.4539, -1690.9188, 13.5453 );
SetPlayerInterior( playerid, 0 );
return 1;
}
}
if( strcmp( "/etnobotanice", cmdtext, true, 13 ) == 0 ) {
SetPlayerCheckpoint( playerid, 2459.4539, -1690.9188, 13.5453, 3.0 );
SendClientMessage( playerid, COLOR_BLUELIGHTER, "Magazinul de Etnobotanice a fost plasat cu punctul rosu pe harta dumneavoastra." );
return 1;
}
return 0;
}