public OnPlayerKeyStateChange (playerid, newkeys, oldkeys) {
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if(newkeys & KEY_SPRINT) {
if(GetPVarType(playerid, "Stripper")) {
new rand = random(6),
iActorID = GetPVarInt(playerid, "Stripper");
switch(rand) {
case 0: ApplyActorAnimation(iActorID, "STRIP", "strip_E", 4.1, 1, 0, 0, 0, 0);
case 1: ApplyActorAnimation(iActorID, "STRIP", "strip_G", 4.1, 1, 0, 0, 0, 0);
case 2: ApplyActorAnimation(iActorID, "STRIP", "STR_A2B", 4.1, 1, 0, 0, 0, 0);
case 3: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_A", 4.1, 1, 0, 0, 0, 0);
case 4: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_B", 4.1, 1, 0, 0, 0, 0);
default: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_C", 4.1, 1, 0, 0, 0, 0);
}
}
}
return 1;
}
PHP код:
|
OnPlayerModelSelectionEx
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
{
PHP код:
|