22.03.2009, 00:00
Quote:
Originally Posted by JeNkStAX
Return 1 after every teleport to a house
|
pawn Code:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName, "[SAP]Sidhu", true) == 0)
{
SetPlayerPos(playerid,1256.8922,-785.2639,92.0302);
SetPlayerFacingAngle(playerid,268.8916);
SendClientMessage (playerid, green, "Welcome Home, [SAP]Sidhu!");
}
else
{
SendClientMessage(playerid, red, "You do not own a house!");
}