27.10.2011, 07:53
pawn Код:
if(strcmp(cmdtext, "/mewantzpr0n", true)==0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, "Rafael_Rodriguez", true) || !strcmp(name, "Pedro_Rodriguez", true))
{
ResetPlayerWeapons(npcid);
SetPlayerPos(playerid, 1204.2649,16.9675,1000.9219);
SetPlayerPos(npcid, 1202.7460,14.7477,1000.9219);
SetPlayerInterior(npcid, 2);
SetPlayerInterior(playerid, 2);
SetPlayerSkin(npcid, 256);
SendClientMessage(playerid, COLOR_WHITE, "Angelica_Winter says: So, handsome, want to do something?");
if(!strcmp(name, "Rafael_Rodriguez", true))
{
SetPlayerChatBubble(npcid,"Hey Rafael, want to have some fun?\nTell me what to do.",0xFFFFFFAA,50,5000);
barkeeperactivated = 1;
return 1;
}
else if(!strcmp(name, "Pedro_Rodriguez", true))
{
SetPlayerChatBubble(npcid,"Hey Pedro, want to have some fun?\nTell me what to do.",0xFFFFFFAA,50,5000);
barkeeperactivated = 1;
return 1;
}
}
return 1;
}