05.07.2009, 16:13
Try that
pawn Код:
if (strcmp(cmdtext, "/ogate", true)==0)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
if (pName[(strfind(pName, "_test", true, 1) + 5)] == EOS)
{
MoveStreamObject(test, -2443.229004, 491.982147, 30.627890, 2.500000);
MoveStreamObject(test1, -2423.760254, 500.450073, 30.631317, 2.500000);
SetTimer("Close", 7000, 0);
SendClientMessage(playerid, COLOR_YELLOW, "Indentity corfimed. The Enctrance Door is opening.");
}
else SendClientMessage(playerid, COLOR_GRAD3, "Wrong indentity.");
return 1;
}