11.06.2008, 14:31
Quote:
Originally Posted by Kapil
Code:
new boy; new girl; public OnPlayerSpawn(playerid) { if(PlayerRole[playerid] == boy) { SetPlayerCity( playerid, LS ); } if(PlayerRole[playerid] == girl) { SetPlayerCitY( playerid, SF ); } } new mydreamgirl,mydreamboy; public OnGirlLSTour(playerid) { SetPlayerFacing(playerid, boy ); SetPlayerFacing( boy, playerid); mydreamgirl = SetTimer("BoyFallsInLove",1,1); mydramboy = SetTimer("GirlFallsInLoveToo",1,1); } public BoyFallsInLove( ) { if(IsGirlAlive() == true) { Dream(); } else { GiveDrugs(); SetPlayerAnimated( PLAYER_ANIMATION_CRYING ); } } new loops = 0; public GirlFallsInLove( ) { if( loops < 24 * 1000 ) { if(IsBoyAlive() == true) { Dream(); loops++; } else { KillTimer(mydreamboy); loops = 0; SendClientMessage(playerid,"Girl: oh shit, whos next ?"); } } } public TheFirstMeet(boy,girl) { SendClientMessage( girl , "Boy: Hello"); SendClientMessage( boy, "Girl: Hi"); SendClientMessage( girl, "Boy: My name is Boy"); SendClientMessage( boy, "Girl: Girl"); SendClientMessage( girl , "Boy: nice name"); SendClientMessage( boy, "Girl: thx urs too"); Depart( boy ); Depart( girl ); sleep( 2 * 365 * 24 * 60 * 60 * 1000 ); // exactly after 2 years } |